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:
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user