]> git.mjollnir.org Git - moodle.git/commitdiff
Fixing the admin directory check (again ;-))
authormoodler <moodler>
Mon, 10 Jan 2005 08:04:44 +0000 (08:04 +0000)
committermoodler <moodler>
Mon, 10 Jan 2005 08:04:44 +0000 (08:04 +0000)
install.php

index 17f1b64cf100d34b3d71c7528308f9fbf784181d..8dc07c54708dfd01ed2aab1ef3bb67c9585d642a 100644 (file)
@@ -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['dirroot'].'/'.$INSTALL['admindirname'].'/site.html', 'r')) !== false) {
+    if (($fh = @fopen($INSTALL['wwwroot'].'/'.$INSTALL['admindirname'].'/site.html', 'r')) !== false) {
         $nextstage = ($goforward) ? 5 : 3;
         fclose($fh);
     } else {