]> git.mjollnir.org Git - moodle.git/commitdiff
Use dirroot to check admin directory
authorpaca70 <paca70>
Fri, 22 Oct 2004 10:17:25 +0000 (10:17 +0000)
committerpaca70 <paca70>
Fri, 22 Oct 2004 10:17:25 +0000 (10:17 +0000)
install.php

index 4916f1ae470b4730d690211032edd3de690c9c6c..6d3fa5bfbd2df8982c86e3359ecb85e0b7ef3a3b 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['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 {