]> git.ipfire.org Git - thirdparty/AWStats.git/commitdiff
Fixed: Problem with #include.
authoreldy <>
Tue, 10 Dec 2002 21:11:20 +0000 (21:11 +0000)
committereldy <>
Tue, 10 Dec 2002 21:11:20 +0000 (21:11 +0000)
wwwroot/cgi-bin/awstats.pl

index 703bf374fed14652be99b35595dfa84714bdac4b..32b112ee4fd049103ad94215fa769095069fd1e1 100644 (file)
@@ -1021,9 +1021,9 @@ sub Parse_Config {
                    # Correct relative include files
                    if ( $includeFile !~ m|^[\\/]| ) {
                                my $configDir = $FileConfig;
-                               $configDir =~ s|[\\/][^\\/]*$|/|;
-                               $includeFile = "$configDir$includeFile";
-                   }
+                               if ($configDir =~ s|[\\/][^\\/]*$|/|) {   $includeFile = "$configDir$includeFile"; }
+                               else { $includeFile = "$includeFile"; }
+                       }
                    if ( open( CONFIG_INCLUDE, $includeFile ) ) {
                                &Parse_Config( *CONFIG_INCLUDE , $level+1, $includeFile);
                                close( CONFIG_INCLUDE );