From c05a30bc19682a215bf86afe75c8b3fd4a5e552f Mon Sep 17 00:00:00 2001 From: stronk7 Date: Sun, 9 Apr 2006 21:39:49 +0000 Subject: [PATCH] Preventig bug affecting sites with modified wwwroot and custom admin dir. Bug 5031. (http://moodle.org/bugs/bug.php?op=show&bugid=5031) --- install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.php b/install.php index 3136f3bbdb..4af6ab35c6 100644 --- a/install.php +++ b/install.php @@ -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 { -- 2.39.5