]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 120537 (b) - fix previous patch to not complain if there's no .htaccess file...
authorgerv%gerv.net <>
Wed, 3 Apr 2002 02:23:23 +0000 (02:23 +0000)
committergerv%gerv.net <>
Wed, 3 Apr 2002 02:23:23 +0000 (02:23 +0000)
defparams.pl

index f5b7ba098c47f322df3171b8a3c1c89916dfa317..eddf50942457047393b32f06e31cedf946049b27 100644 (file)
@@ -566,11 +566,13 @@ sub check_webdotbase {
             return "The file path \"$value\" is not a valid executable.  Please specify the complete file path to 'dot' if you intend to generate graphs locally.";
         }
         # Check .htaccess allows access to generated images
-        open HTACCESS, "data/webdot/.htaccess";
-        if(! grep(/png/,<HTACCESS>)) {
-            print "Dependency graph images are not accessible.\nDelete data/webdot/.htaccess and re-run checksetup.pl to rectify.\n";
+        if(-e "data/webdot/.htaccess") {
+            open HTACCESS, "data/webdot/.htaccess";
+            if(! grep(/png/,<HTACCESS>)) {
+                print "Dependency graph images are not accessible.\nDelete data/webdot/.htaccess and re-run checksetup.pl to rectify.\n";
+            }
+            close HTACCESS;
         }
-        close HTACCESS;
     }
     return "";
 }