mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
Preventig bug affecting sites with modified wwwroot and
custom admin dir. Bug 5031. (http://moodle.org/bugs/bug.php?op=show&bugid=5031)
This commit is contained in:
parent
1d7e093418
commit
c05a30bc19
@ -343,7 +343,7 @@ if ($INSTALL['stage'] == DATABASE) {
|
||||
if ($nextstage == ADMIN or $INSTALL['stage'] == ADMIN) {
|
||||
if (!ini_get('allow_url_fopen')) {
|
||||
$nextstage = ($goforward) ? ENVIRONMENT : DATABASE;
|
||||
} else if (($fh = @fopen($INSTALL['wwwroot'].'/'.$INSTALL['admindirname'].'/site.html', 'r')) !== false) {
|
||||
} else if (($fh = @fopen($INSTALL['wwwrootform'].'/'.$INSTALL['admindirname'].'/site.html', 'r')) !== false) {
|
||||
$nextstage = ($goforward) ? ENVIRONMENT : DATABASE;
|
||||
fclose($fh);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user