Bug 138064 - False-positive error message in checksetup.pl when checking for "png" in data/webdot/.htaccess. Patch by ddk; 2xr=justdave.

This commit is contained in:
gerv%gerv.net 2002-04-18 19:59:00 +00:00
Родитель de6d4a7735
Коммит cb70cb2683
1 изменённых файлов: 7 добавлений и 5 удалений

Просмотреть файл

@ -985,12 +985,14 @@ if(-e "data/params") {
}
# Check .htaccess allows access to generated images
open HTACCESS, "data/webdot/.htaccess";
if(! grep(/png/,<HTACCESS>)) {
print "Dependency graph images are not accessible.\n";
print "Delete 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.\n";
print "Delete data/webdot/.htaccess and re-run checksetup.pl to rectify.\n";
}
close HTACCESS;
}
close HTACCESS;
}
}