remove code trying to prevent caching of config objects

This commit is contained in:
Graham Knop 2010-07-07 02:52:02 -05:00
parent e530222d49
commit 894385396c
4 changed files with 7 additions and 7 deletions

View file

@ -423,7 +423,7 @@ sub createBackup {
my $self = shift;
my $config = shift;
if (! ref $config) {
$config = WebGUI::Config->new($config, 1);
$config = WebGUI::Config->new($config);
}
make_path($self->backupPath);
@ -492,7 +492,7 @@ sub dbhForConfig {
my $class = shift;
my $config = shift;
if (! ref $config) {
$config = WebGUI::Config->new($config, 1);
$config = WebGUI::Config->new($config);
}
return WebGUI::SQL->connect($config);
}
@ -509,7 +509,7 @@ sub mysqlCommandLine {
my $class = shift;
my $config = shift;
if (! ref $config) {
$config = WebGUI::Config->new($config, 1);
$config = WebGUI::Config->new($config);
}
my $dsn = $config->get('dsn');

View file

@ -55,7 +55,7 @@ sub _build_exports {
my $config_sub = sub () {
state $config = do {
require WebGUI::Config;
WebGUI::Config->new($configFile, 1);
WebGUI::Config->new($configFile);
};
return $config;
};