MDL-44780 filter_mathjaxloader: mathjax is now at the top of the filter list
authorAndrew Davis <andrew@moodle.com>
Wed, 23 Apr 2014 08:56:08 +0000 (16:56 +0800)
committerAndrew Davis <andrew@moodle.com>
Wed, 30 Apr 2014 00:29:14 +0000 (08:29 +0800)
filter/activitynames/db/install.php
filter/mathjaxloader/db/install.php
lib/filterlib.php

index ea065a5..cc0a794 100644 (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);
 }
 
index 49496ae..8a9724b 100644 (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);
 }
index 0f6072c..5aca116 100644 (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;