MDL-30381 Fixed path to the cache directory in installers
authorDavid Mudrak <david@moodle.com>
Mon, 21 Nov 2011 10:49:51 +0000 (11:49 +0100)
committerDavid Mudrak <david@moodle.com>
Mon, 21 Nov 2011 14:48:31 +0000 (15:48 +0100)
This fixes the patch f848c0f6e60c4451a0058d87194f326bca690c1e introduced
in MDL-29351.

admin/cli/install.php
install.php

index 68ed892..2ecb49b 100644 (file)
@@ -135,7 +135,7 @@ $CFG->wwwroot              = "http://localhost";
 $CFG->httpswwwroot         = $CFG->wwwroot;
 $CFG->dataroot             = str_replace('\\', '/', dirname(dirname(dirname(dirname(__FILE__)))).'/moodledata');
 $CFG->tempdir              = $CFG->dataroot.'/temp';
-$CFG->cachedir             = $CFG->dataroot.'/temp';
+$CFG->cachedir             = $CFG->dataroot.'/cache';
 $CFG->docroot              = 'http://docs.moodle.org';
 $CFG->running_installer    = true;
 $CFG->early_install_lang   = true;
index 533c7ae..341a147 100644 (file)
@@ -166,7 +166,7 @@ $CFG->wwwroot              = install_guess_wwwroot(); // can not be changed - pp
 $CFG->httpswwwroot         = $CFG->wwwroot;
 $CFG->dataroot             = $config->dataroot;
 $CFG->tempdir              = $CFG->dataroot.'/temp';
-$CFG->cachedir             = $CFG->dataroot.'/temp';
+$CFG->cachedir             = $CFG->dataroot.'/cache';
 $CFG->admin                = $config->admin;
 $CFG->docroot              = 'http://docs.moodle.org';
 $CFG->langotherroot        = $CFG->dataroot.'/lang';