From: moodler Date: Sun, 22 Feb 2004 12:27:52 +0000 (+0000) Subject: Another fix for recent testers only I think X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a4dda51f430829b8b419cfc5b415a8dabc9eb503;p=moodle.git Another fix for recent testers only I think --- diff --git a/lib/db/mysql.php b/lib/db/mysql.php index bf1c5ac962..b5cb977556 100644 --- a/lib/db/mysql.php +++ b/lib/db/mysql.php @@ -707,6 +707,7 @@ function main_upgrade($oldversion=0) { if ($oldversion < 2004022200) { /// Final renaming I hope. :-) if (!empty($CFG->textfilters)) { $CFG->textfilters = str_replace("/filter.php", "", $CFG->textfilters); + $CFG->textfilters = str_replace("mod/glossary/dynalink.php", "mod/glossary", $CFG->textfilters); $textfilters = explode(',', $CFG->textfilters); foreach ($textfilters as $key => $textfilter) { $textfilters[$key] = trim($textfilter); diff --git a/lib/db/postgres7.php b/lib/db/postgres7.php index 17f63775f3..30969d1738 100644 --- a/lib/db/postgres7.php +++ b/lib/db/postgres7.php @@ -452,6 +452,7 @@ function main_upgrade($oldversion=0) { if ($oldversion < 2004022200) { /// Final renaming I hope. :-) if (!empty($CFG->textfilters)) { $CFG->textfilters = str_replace("/filter.php", "", $CFG->textfilters); + $CFG->textfilters = str_replace("mod/glossary/dynalink.php", "mod/glossary", $CFG->textfilters); $textfilters = explode(',', $CFG->textfilters); foreach ($textfilters as $key => $textfilter) { $textfilters[$key] = trim($textfilter);