MDL-43437 fix course format disabling
authorPetr Škoda <commits@skodak.org>
Wed, 25 Sep 2013 08:03:06 +0000 (10:03 +0200)
committerPetr Škoda <commits@skodak.org>
Wed, 25 Sep 2013 08:03:06 +0000 (10:03 +0200)
lib/pluginlib.php

index 1ae306b..3dc18ae 100644 (file)
@@ -4030,7 +4030,7 @@ class plugininfo_format extends plugininfo_base {
             if (empty($conf->value)) {
                 continue;
             }
-            list($type, $name) = explode('_', $conf->component, 2);
+            list($type, $name) = explode('_', $conf->plugin, 2);
             unset($plugins[$name]);
         }