summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2002-06-20 04:27:37 +0000
committerPeter Palfrader <peter@palfrader.org>2002-06-20 04:27:37 +0000
commit14e34151772e3285012a29371f05b1cb0e552527 (patch)
tree0d00782224533861a083c0bae5e31565dd23476a
parent9904f26ed79560a1e7a90769a857b4d8ca8a1221 (diff)
split initStorage into own function
-rw-r--r--Echolot/Globals.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/Echolot/Globals.pm b/Echolot/Globals.pm
index 4b5eb13..bd374da 100644
--- a/Echolot/Globals.pm
+++ b/Echolot/Globals.pm
@@ -1,7 +1,7 @@
package Echolot::Globals;
# (c) 2002 Peter Palfrader <peter@palfrader.org>
-# $Id: Globals.pm,v 1.1 2002/06/05 04:05:40 weasel Exp $
+# $Id: Globals.pm,v 1.2 2002/06/20 04:27:37 weasel Exp $
#
=pod
@@ -25,10 +25,13 @@ sub init {
$hostname =~ /^([a-zA-Z0-9_-]*)$/;
$hostname = $1 || 'unknown';
$GLOBALS->{'hostname'} = $hostname;
- $GLOBALS->{'storage'} = new Echolot::Storage::File ( datadir => Echolot::Config::get()->{'storage'}->{'File'}->{'basedir'} );
$GLOBALS->{'internalcounter'} = 1;
};
+sub initStorage {
+ $GLOBALS->{'storage'} = new Echolot::Storage::File ( datadir => Echolot::Config::get()->{'storage'}->{'File'}->{'basedir'} );
+};
+
sub get() {
return $GLOBALS;
};