MDL-44780 filter_mathjaxloader: mathjax is now at the top of the filter list
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user