Some configuration options now added to the Configuration page.

opentogoogle

  textfilters

  cachetext

They should upgrade cleanly from anything you may have in config.php
This commit is contained in:
moodler
2004-02-10 05:05:28 +00:00
parent 0cbc7de6b6
commit d523d2ead1
7 changed files with 112 additions and 10 deletions
+18
View File
@@ -398,6 +398,24 @@ function main_upgrade($oldversion=0) {
);");
}
if ($oldversion < 2004021000) {
$textfilters = array();
for ($i=1; $i<=10; $i++) {
$variable = "textfilter$i";
if (!empty($CFG->$variable)) { /// No more filters
if (is_readable("$CFG->dirroot/".$CFG->$variable)) {
$textfilters[] = $CFG->$variable;
}
}
}
$textfilters = implode(',', $textfilters);
if (empty($textfilters)) {
$textfilters = 'mod/glossary/dynalink.php';
}
set_config('textfilters', $textfilters);
}
return $result;
}