From bb5a61a1d4b3c1df2e3ed1a6861bf0997e42dcf9 Mon Sep 17 00:00:00 2001 From: skodak Date: Tue, 22 Aug 2006 22:22:34 +0000 Subject: [PATCH] reverting wrong commit, sorry :-( --- install.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/install.php b/install.php index ef436f9c8c..67dbab7131 100644 --- a/install.php +++ b/install.php @@ -141,19 +141,10 @@ $INSTALL['release'] = $release; /// Have the $db object ready because we are going to use it often $db = &ADONewConnection($INSTALL['dbtype']); -/// guess the www root and secure dataroot +/// guess the www root if ($INSTALL['wwwroot'] == '') { list($INSTALL['wwwroot'], $xtra) = explode('/install.php', qualified_me()); $INSTALL['wwwrootform'] = $INSTALL['wwwroot']; - - // now count slashes and treverse dirroot to get one level above web root - $up = preg_match_all('/\//', $INSTALL['wwwroot'], $matches) - 1; - $CFG->dataroot = $CFG->dirroot; - for ($i=0; $i<$up; $i++) { - $CFG->dataroot = dirname($CFG->dataroot); - } - $CFG->dataroot .= '/moodledata'; - $INSTALL['dataroot'] = $CFG->dataroot; } $headstagetext = array(WELCOME => get_string('chooselanguagehead', 'install'), -- 2.39.5