From: eldy <> Date: Sun, 9 Feb 2003 17:52:14 +0000 (+0000) Subject: Better error report in load of plugin. X-Git-Tag: AWSTATS_5_4_BETA~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2afcba0cd62270db949a7fb738cad7f5c660eaac;p=thirdparty%2FAWStats.git Better error report in load of plugin. --- diff --git a/wwwroot/cgi-bin/plugins/geoip.pm b/wwwroot/cgi-bin/plugins/geoip.pm index 15932741..121be423 100644 --- a/wwwroot/cgi-bin/plugins/geoip.pm +++ b/wwwroot/cgi-bin/plugins/geoip.pm @@ -12,10 +12,10 @@ # <----- # ENTER HERE THE USE COMMAND FOR ALL REQUIRED PERL MODULES -use Geo::IP; # For GeoIP -#use Geo::IPfree; # For GeoIPfree +if (!eval ('require "Geo/IP.pm";')) { return "Error: Need Perl module Geo::IP"; } # For GeoIP +#if (!eval ('require "Geo/IPfree.pm";')) { return "Error: Need Perl module Geo::IPfree"; } # For GeoIPfree # -----> -use strict;no strict "refs"; +#use strict;no strict "refs";