mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
MDL-18195 installer - ignore differences in slashes when checking $CFG->dirroot
This commit is contained in:
parent
dc482cfac0
commit
c454b86c64
@ -53,7 +53,8 @@
|
||||
/// Check settings in config.php
|
||||
|
||||
$dirroot = dirname(realpath("../index.php"));
|
||||
if (!empty($dirroot) and $dirroot != $CFG->dirroot) {
|
||||
/// 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));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user