Репозитории ALT
S: | 3.11.15-alt3 |
5.1: | 1.9.16.20120217-alt3.M51.1 |
4.1: | 1.9.2-alt1.cvs20080827.M41.3 |
4.0: | 1.9.2-alt1.cvs20080827.M40.1 |
Группа :: Сети/Прочее
Пакет: moodle
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: moodle-alt-install-datadir-fix.patch
Скачать
Скачать
--- moodle/install.php
+++ moodle/install.php
@@ -171,18 +171,18 @@
$INSTALL['wwwrootform'] = $INSTALL['wwwroot'];
// now try to guess the correct dataroot not accessible via web
- $CFG->wwwroot = $INSTALL['wwwroot'];
- $i = 0; //safety check - dirname might return some unexpected results
- while(is_dataroot_insecure()) {
- $parrent = dirname($CFG->dataroot);
- $i++;
- if ($parrent == '/' or $parrent == '.' or preg_match('/^[a-z]:\\\?$/i', $parrent) or ($i > 100)) {
- $CFG->dataroot = ''; //can not find secure location for dataroot
- break;
- }
- $CFG->dataroot = dirname($parrent).'/moodledata';
- }
- $INSTALL['dataroot'] = $CFG->dataroot;
+// $CFG->wwwroot = $INSTALL['wwwroot'];
+// $i = 0; //safety check - dirname might return some unexpected results
+// while(is_dataroot_insecure()) {
+// $parrent = dirname($CFG->dataroot);
+// $i++;
+// if ($parrent == '/' or $parrent == '.' or preg_match('/^[a-z]:\\\?$/i', $parrent) or ($i > 100)) {
+// $CFG->dataroot = ''; //can not find secure location for dataroot
+// break;
+// }
+// $CFG->dataroot = dirname($parrent).'/moodledata';
+// }
+// $INSTALL['dataroot'] = $CFG->dataroot;
}
$headstagetext = array(WELCOME => get_string('chooselanguagehead', 'install'),