From 14e34151772e3285012a29371f05b1cb0e552527 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Thu, 20 Jun 2002 04:27:37 +0000 Subject: split initStorage into own function --- Echolot/Globals.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Echolot') 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 -# $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; }; -- cgit v1.2.3