mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
Use dirroot to check admin directory
This commit is contained in:
parent
2df3a7219d
commit
774c4d2bc3
@ -262,7 +262,7 @@ if ($INSTALL['stage'] == 3) {
|
||||
/// If we can open a file then we know that the admin name is correct.
|
||||
|
||||
if ($nextstage == 4 or $INSTALL['stage'] == 4) {
|
||||
if (($fh = @fopen($INSTALL['wwwroot'].'/'.$INSTALL['admindirname'].'/site.html', 'r')) !== false) {
|
||||
if (($fh = @fopen($INSTALL['dirroot'].'/'.$INSTALL['admindirname'].'/site.html', 'r')) !== false) {
|
||||
$nextstage = ($goforward) ? 5 : 3;
|
||||
fclose($fh);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user