MDL-18195 installer - improve CFG->dirroot error message

This commit is contained in:
stronk7 2009-02-09 17:46:29 +00:00
parent c454b86c64
commit a4ac30c0e4
2 changed files with 2 additions and 2 deletions

View file

@ -55,7 +55,7 @@
$dirroot = dirname(realpath("../index.php"));
/// Check correct dirroot, ignoring slashes (though should be always forward slashes). MDL-18195
if (!empty($dirroot) and str_replace('\\', '/', $dirroot) != str_replace('\\', '/', $CFG->dirroot)) {
print_error('fixsetting', 'debug', '', (object)array('current'=>$CFG->dirroot, 'found'=>$dirroot));
print_error('fixsetting', 'debug', '', (object)array('current'=>$CFG->dirroot, 'found'=>str_replace('\\', '/', $dirroot)));
}
/// Set some necessary variables during set-up to avoid PHP warnings later on this page