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:
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user