Changeset 1570
- Timestamp:
- 03/20/08 13:37:22 (8 months ago)
- Files:
-
- devel/lib/sanitychecks.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/lib/sanitychecks.php
r1378 r1570 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.';
