Changeset 424

Show
Ignore:
Timestamp:
07/03/06 11:42:46 (2 years ago)
Author:
sven
Message:

init: some more not-rtfm-proofing

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/includes.php

    r419 r424  
    55    // All installation specific parameters should be in a file  
    66    // that is not part of the standard distribution. 
     7        if (!file_exists(dirname(__FILE__)."/config.php")) { 
     8            die('Elgg configuration error: config.php is missing. Please see INSTALL file.'); 
     9        } 
    710        require_once(dirname(__FILE__)."/config.php"); 
    811 
  • devel/sanitychecks.php

    r419 r424  
    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)) { 
     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.'; 
    1318    } 
    1419