]> git.mjollnir.org Git - moodle.git/commitdiff
Renamed dynalink.php to filter.php for consistency with other filters
authormoodler <moodler>
Sun, 22 Feb 2004 00:20:14 +0000 (00:20 +0000)
committermoodler <moodler>
Sun, 22 Feb 2004 00:20:14 +0000 (00:20 +0000)
mod/glossary/db/mysql.php
mod/glossary/db/postgres7.php
mod/glossary/filter.php [moved from mod/glossary/dynalink.php with 100% similarity]
mod/glossary/version.php

index e7b21c6ff94b405cf9b192d0203253c62936160d..7e1c629b9a00e2b7f412251411a4eb68b0808fca 100644 (file)
@@ -242,6 +242,13 @@ function glossary_upgrade($oldversion) {
     if ($oldversion < 2003112701) {
         delete_records("glossary_alias","entryid",0);
     }
+
+    if ($oldversion < 2004022200) {
+        if (!empty($CFG->textfilters)) {
+            $CFG->textfilters = str_replace("dynalink.php", "filter.php", $CFG->textfilters);
+            set_config("textfilters", $CFG->textfilters);
+        }
+    }
     
   return true;
 }
index 1ede63bea4a4456d90f4f377b75926e500046965..15b2adaccc9920585581fc594e2a77c2342d95d9 100644 (file)
@@ -6,8 +6,14 @@ function glossary_upgrade($oldversion) {
 
     global $CFG;
 
+    if ($oldversion < 2004022200) {
+        if (!empty($CFG->textfilters)) {
+            $CFG->textfilters = str_replace("dynalink.php", "filter.php", $CFG->textfilters);
+            set_config("textfilters", $CFG->textfilters);
+        }
+    }
 
     return true;
 }
 
-?>
\ No newline at end of file
+?>
index 0d6a85416956b5fe9475df85e1879b8b2ac17e8a..c9106e176f44d0bf98276b21e64857cce216c601 100644 (file)
@@ -5,7 +5,7 @@
 ///  This fragment is called by moodle_needs_upgrading() and /admin/index.php
 /////////////////////////////////////////////////////////////////////////////////
 
-$module->version  = 2004013101;  // The current module version (Date: YYYYMMDDXX)
+$module->version  = 2004022200;  // The current module version (Date: YYYYMMDDXX)
 $module->requires = 2004013101;  // Requires this Moodle version
 $module->cron     = 0;           // Period for cron to check this module (secs)