mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
Upgrade filter references
This commit is contained in:
parent
4da85078e9
commit
9e353ce7e2
3 changed files with 23 additions and 1 deletions
|
@ -688,6 +688,17 @@ function main_upgrade($oldversion=0) {
|
||||||
table_column("groups", "", "hidepicture", "integer", "2", "unsigned", "0", "", "picture");
|
table_column("groups", "", "hidepicture", "integer", "2", "unsigned", "0", "", "picture");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($oldversion < 2004021700) {
|
||||||
|
if (!empty($CFG->textfilters)) {
|
||||||
|
$CFG->textfilters = str_replace("tex_filter.php", "filter.php", $CFG->textfilters);
|
||||||
|
$CFG->textfilters = str_replace("multilang.php", "filter.php", $CFG->textfilters);
|
||||||
|
$CFG->textfilters = str_replace("censor.php", "filter.php", $CFG->textfilters);
|
||||||
|
$CFG->textfilters = str_replace("mediaplugin.php", "filter.php", $CFG->textfilters);
|
||||||
|
$CFG->textfilters = str_replace("algebra_filter.php", "filter.php", $CFG->textfilters);
|
||||||
|
set_config("textfilters", $CFG->textfilters);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -433,6 +433,17 @@ function main_upgrade($oldversion=0) {
|
||||||
table_column("groups", "", "hidepicture", "integer", "2", "unsigned", "0", "", "picture");
|
table_column("groups", "", "hidepicture", "integer", "2", "unsigned", "0", "", "picture");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($oldversion < 2004021700) {
|
||||||
|
if (!empty($CFG->textfilters)) {
|
||||||
|
$CFG->textfilters = str_replace("tex_filter.php", "filter.php", $CFG->textfilters);
|
||||||
|
$CFG->textfilters = str_replace("multilang.php", "filter.php", $CFG->textfilters);
|
||||||
|
$CFG->textfilters = str_replace("censor.php", "filter.php", $CFG->textfilters);
|
||||||
|
$CFG->textfilters = str_replace("mediaplugin.php", "filter.php", $CFG->textfilters);
|
||||||
|
$CFG->textfilters = str_replace("algebra_filter.php", "filter.php", $CFG->textfilters);
|
||||||
|
set_config("textfilters", $CFG->textfilters);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
// database to determine whether upgrades should
|
// database to determine whether upgrades should
|
||||||
// be performed (see lib/db/*.php)
|
// be performed (see lib/db/*.php)
|
||||||
|
|
||||||
$version = 2004021500; // The current version is a date (YYYYMMDDXX)
|
$version = 2004021700; // The current version is a date (YYYYMMDDXX)
|
||||||
|
|
||||||
$release = "1.2 development"; // User-friendly version number
|
$release = "1.2 development"; // User-friendly version number
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue