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:
stronk7 2006-04-09 21:39:49 +00:00
parent 1d7e093418
commit c05a30bc19

View File

@ -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 {