Ticket #217: 01213_file_exists_fails.diff
| File 01213_file_exists_fails.diff, 1.4 kB (added by rho, 9 months ago) |
|---|
-
lib/sanitychecks.php
old new 10 10 $diemessages[] = 'Configuration problem: The <code>$CFG->dirroot</code> setting in config.php is empty.'; 11 11 } elseif (substr($CFG->dirroot, -1) != "/") { 12 12 $diemessages[] = 'Configuration problem: The <code>$CFG->dirroot</code> setting in config.php must end with a forward slash (/).'; 13 } elseif (! file_exists($CFG->dirroot)) {13 } elseif (!is_readable($CFG->dirroot)) { 14 14 //this needs checking now, because includes.php needs it to work 15 $diemessages[] = 'Configuration problem: The <code>$CFG->dirroot</code> setting in config.php points to a directory that does not exist.'; 16 } elseif (!is_dir($CFG->dirroot)) { 17 $diemessages[] = 'Configuration problem: The <code>$CFG->dirroot</code> setting in config.php points to a location that is not a directory.'; 18 } 19 15 $diemessages[] = 'Configuration problem: The <code>$CFG->dirroot</code> setting in config.php points to a directory that can not be read.'; 16 } 17 20 18 if (!preg_match('#^https?://.+#', $CFG->wwwroot)) { 21 19 $diemessages[] = 'Configuration problem: The <code>$CFG->wwwroot</code> setting in config.php is empty or not a valid URL.'; 22 20 } elseif (substr($CFG->wwwroot, -1) != "/") {
