Permalink
Browse files

MDL-29996 filters: fixed bug when upgrading filter plugin names

  • Loading branch information...
1 parent e00b5c4 commit b8459c0267c1fdf874d5f122d5c1dc72727e8d95 Sam Hemelryk committed Jan 7, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/pluginlib.php
View
2 lib/pluginlib.php
@@ -2677,7 +2677,7 @@ public static function get_plugins($type, $typerootdir, $typeclass) {
// if it does, make sure that all installed filters are registered
$needsreload = false;
foreach (array_keys($installed) as $name) {
- if (!isset($globalstates[$name])) {
+ if (!isset($globalstates[$name]) && !isset($globalstates['filter/'.$name])) {
filter_set_global_state($name, TEXTFILTER_DISABLED);
$needsreload = true;
}

0 comments on commit b8459c0

Please sign in to comment.