MDL-44780 filter_mathjaxloader: mathjax is now at the top of the filter list

This commit is contained in:
Andrew Davis
2014-04-30 08:29:14 +08:00
parent 0c7d3f2bc4
commit feac5dc7ba
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -26,6 +26,6 @@ function xmldb_filter_activitynames_install() {
global $CFG;
require_once("$CFG->libdir/filterlib.php");
filter_set_global_state('activitynames', TEXTFILTER_ON);
filter_set_global_state('activitynames', TEXTFILTER_ON, 1);
}
+1 -1
View File
@@ -29,5 +29,5 @@ function xmldb_filter_mathjaxloader_install() {
global $CFG;
require_once("$CFG->libdir/filterlib.php");
filter_set_global_state('mathjaxloader', TEXTFILTER_ON);
filter_set_global_state('mathjaxloader', TEXTFILTER_ON, -1);
}
+1 -1
View File
@@ -527,7 +527,7 @@ function filter_get_all_installed() {
*
* @param string $filtername The filter name, for example 'tex'.
* @param int $state One of the values TEXTFILTER_ON, TEXTFILTER_OFF or TEXTFILTER_DISABLED.
* @param int $move 1 means up, 0 means the same, -1 means down
* @param int $move -1 means up, 0 means the same, 1 means down
*/
function filter_set_global_state($filtername, $state, $move = 0) {
global $DB;