diff --git a/lib/WebGUI/Config.pm b/lib/WebGUI/Config.pm index 5453d6de1..347931abf 100644 --- a/lib/WebGUI/Config.pm +++ b/lib/WebGUI/Config.pm @@ -100,12 +100,13 @@ The filename of the config file to read. =cut -sub new { - my $package = shift; +around BUILDARGS => sub { + my $orig = shift; + my $class = shift; my $filename = shift; $filename = Cwd::realpath(File::Spec->rel2abs($filename, WebGUI::Paths->configBase)); - return $package->SUPER::new($filename); -} + return $class->$orig($filename); +}; 1; diff --git a/sbin/testEnvironment.pl b/sbin/testEnvironment.pl index 2e906c1f9..ed1d23e8b 100755 --- a/sbin/testEnvironment.pl +++ b/sbin/testEnvironment.pl @@ -111,7 +111,7 @@ checkModule("XML::FeedPP::MediaRSS", 0.02 ); checkModule("JSON", 2.12 ); checkModule("JSON::Any", 1.22 ); checkModule("JSON::PP", 0.00 ); -checkModule("Config::JSON", 1.5100 ); +checkModule("Config::JSON", "1.3.1" ); checkModule("Text::CSV_XS", "0.64" ); checkModule("Net::CIDR::Lite", 0.20 ); checkModule("Finance::Quote", 1.15 );