aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2015-12-30 23:22:32 +0100
committerAngelo Naselli <anaselli@linux.it>2015-12-30 23:22:32 +0100
commite6ee7984f68547fdd044350e9681c3a7e2e3ad2e (patch)
treeb8b2807eccb012ccc1e3f1067089aca32ef63339
parentc34e5e6e3b22c753b6ddaa7ec7f822470e87fbd7 (diff)
downloadmanatools-e6ee7984f68547fdd044350e9681c3a7e2e3ad2e.tar
manatools-e6ee7984f68547fdd044350e9681c3a7e2e3ad2e.tar.gz
manatools-e6ee7984f68547fdd044350e9681c3a7e2e3ad2e.tar.bz2
manatools-e6ee7984f68547fdd044350e9681c3a7e2e3ad2e.tar.xz
manatools-e6ee7984f68547fdd044350e9681c3a7e2e3ad2e.zip
Right way to read settingRight way to read settingss
-rwxr-xr-xscripts/mpan5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/mpan b/scripts/mpan
index f5747bef..6e652a7d 100755
--- a/scripts/mpan
+++ b/scripts/mpan
@@ -66,7 +66,7 @@ my $cmdline = mpan::CommandLine->new_with_options();
my $settings = getSettings();
-if ($cmdline->devel() > 0) {
+if ($cmdline->devel()) {
print $loc->N("== Development mode ON ==") . "\n";
}
else {
@@ -105,7 +105,8 @@ sub getSettings {
# configuration file name
my $fileName = "$confDir/settings.conf";
- return new ManaTools::SettingsReader({fileName => $fileName});
+ my $settingsReader = ManaTools::SettingsReader->new({fileName => $fileName});
+ return $settingsReader->settings();
}
=pod