]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
fixed bug where dataroot wasn't being set when regenerating cache during the install
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 1 Mar 2011 23:34:25 +0000 (23:34 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 1 Mar 2011 23:34:25 +0000 (23:34 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8551 36083f99-b078-4883-b0ff-0f9b5a30f544

install/ElggInstaller.php

index 562cdff87d92688ed930a8fc613b09bdbc2b48c1..ab4998b37d6af4a9919123e1137cad8d46b4afc4 100644 (file)
@@ -1335,7 +1335,8 @@ class ElggInstaller {
                $this->enablePlugins();
 
                // reset the views path in case of installing over an old data dir.
-               $dataroot = datalist_get('dataroot');
+               $dataroot = $submissionVars['dataroot'];
+               $CONFIG->dataroot = $dataroot;
                $cache = new ElggFileCache($dataroot);
                $cache->delete('view_paths');
                elgg_invalidate_simplecache();