diff options
-rw-r--r-- | lib/ManaTools/MainDisplay.pm | 3 | ||||
-rwxr-xr-x | scripts/mpan | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/ManaTools/MainDisplay.pm b/lib/ManaTools/MainDisplay.pm index 63934a7b..753a3e57 100644 --- a/lib/ManaTools/MainDisplay.pm +++ b/lib/ManaTools/MainDisplay.pm @@ -454,7 +454,8 @@ sub _loadSettings { my $fileName = "$self->{confDir}/settings.conf"; die "Configuration file missing" if (! -e $fileName); if (!$self->{settings} || $force_load) { - $self->{settings} = new ManaTools::SettingsReader($fileName); + my $settingsReader = ManaTools::SettingsReader->new({fileName => $fileName}); + $self->{settings} = $settingsReader->settings(); } } diff --git a/scripts/mpan b/scripts/mpan index 54ce701e..1933baaf 100755 --- a/scripts/mpan +++ b/scripts/mpan @@ -88,7 +88,7 @@ sub getSettings { # configuration file name my $fileName = "$confDir/settings.conf"; - return new ManaTools::SettingsReader($fileName); + return new ManaTools::SettingsReader({fileName => $fileName}); } =pod |