Changeset 1570

Show
Ignore:
Timestamp:
03/20/08 13:37:22 (8 months ago)
Author:
misja
Message:

Misja Hoebe <misja@curverider.co.uk> Applied attachment:ticket:217:01213_file_exists_fails.diff, closes #217

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/lib/sanitychecks.php

    r1378 r1570  
    1111    } elseif (substr($CFG->dirroot, -1) != "/") { 
    1212        $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)) { 
    1414        //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 
    2018    if (!preg_match('#^https?://.+#', $CFG->wwwroot)) { 
    2119        $diemessages[] = 'Configuration problem: The <code>$CFG->wwwroot</code> setting in config.php is empty or not a valid URL.';