From: moodler Date: Sun, 22 Feb 2004 00:20:14 +0000 (+0000) Subject: Renamed dynalink.php to filter.php for consistency with other filters X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=08df81a8e627dd11772f88b8dff625f995fa7554;p=moodle.git Renamed dynalink.php to filter.php for consistency with other filters --- diff --git a/mod/glossary/db/mysql.php b/mod/glossary/db/mysql.php index e7b21c6ff9..7e1c629b9a 100644 --- a/mod/glossary/db/mysql.php +++ b/mod/glossary/db/mysql.php @@ -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; } diff --git a/mod/glossary/db/postgres7.php b/mod/glossary/db/postgres7.php index 1ede63bea4..15b2adaccc 100644 --- a/mod/glossary/db/postgres7.php +++ b/mod/glossary/db/postgres7.php @@ -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 +?> diff --git a/mod/glossary/dynalink.php b/mod/glossary/filter.php similarity index 100% rename from mod/glossary/dynalink.php rename to mod/glossary/filter.php diff --git a/mod/glossary/version.php b/mod/glossary/version.php index 0d6a854169..c9106e176f 100644 --- a/mod/glossary/version.php +++ b/mod/glossary/version.php @@ -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)