]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Disable nested includes warnings for Perl > 5.6. 78/head
authorjulienlusson <github@lusson.fr>
Mon, 15 Jan 2018 12:51:25 +0000 (13:51 +0100)
committerjulienlusson <github@lusson.fr>
Mon, 15 Jan 2018 12:51:25 +0000 (13:51 +0100)
tools/awstats_buildstaticpages.pl
tools/geoip_generator.pl
wwwroot/cgi-bin/awstats.pl

index 7d89bd044a49fc48228cc3c0934d8905d66f1992..25e05520d8bdd12941f585d6ff5e133d5f8c9aac 100755 (executable)
@@ -183,7 +183,7 @@ sub Parse_Config {
                            # Correct relative include files
                                if ($FileConfig =~ /^(.*[\\\/])[^\\\/]*$/) { $includeFile = "$1$includeFile"; }
                        }
-                       if ($level > 1) {
+                       if ( $level > 1 && $^V lt v5.6.0 ) {
                                warning("Warning: Perl versions before 5.6 cannot handle nested includes");
                                next;
                        }
index 4f53b50bd02cab83cd97c2301ca3d6601d21ca83..cb5f3b92a16f2187f029fd0d938021ad2adb4ec1 100755 (executable)
@@ -202,7 +202,7 @@ sub Parse_Config {
                            # Correct relative include files
                                if ($FileConfig =~ /^(.*[\\\/])[^\\\/]*$/) { $includeFile = "$1$includeFile"; }
                        }
-                       if ($level > 1) {
+                       if ( $level > 1 && $^V lt v5.6.0 ) {
                                warning("Warning: Perl versions before 5.6 cannot handle nested includes");
                                next;
                        }
index b04ed6f8fe931d36b4e17a9c2f2ade504033b8f5..df29af3d36e30fef93a6f791baeb3b31d2ab00fb 100755 (executable)
@@ -1895,7 +1895,7 @@ sub Parse_Config {
                                        $includeFile = "$1$includeFile";
                                }
                        }
-                       if ( $level > 1 ) {
+                       if ( $level > 1 && $^V lt v5.6.0 ) {
                                warning(
 "Warning: Perl versions before 5.6 cannot handle nested includes"
                                );