From f2dab8398341b1cf98aa2ff01adaa5535145b720 Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" Date: Tue, 2 Apr 2002 18:23:23 +0000 Subject: [PATCH] Bug 120537 (b) - fix previous patch to not complain if there's no .htaccess file. Patch by ddkilzer@theracingworld.com; r=justdave, bbaetz. git-svn-id: svn://10.0.0.236/trunk@117937 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/defparams.pl | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/mozilla/webtools/bugzilla/defparams.pl b/mozilla/webtools/bugzilla/defparams.pl index f5b7ba098c4..eddf5094245 100644 --- a/mozilla/webtools/bugzilla/defparams.pl +++ b/mozilla/webtools/bugzilla/defparams.pl @@ -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/,)) { - 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/,)) { + print "Dependency graph images are not accessible.\nDelete data/webdot/.htaccess and re-run checksetup.pl to rectify.\n"; + } + close HTACCESS; } - close HTACCESS; } return ""; }