Merge branch 'MDL-32903' of git://github.com/netspotau/moodle-mod_assign

This commit is contained in:
Sam Hemelryk 2012-05-17 14:24:40 +12:00
commit 72f1957393

View File

@ -460,8 +460,6 @@ class assign_plugin_manager {
}
ksort($pluginsbyname);
// We need to reset settings after the loop
$tempsettings = $settings;
foreach ($pluginsbyname as $pluginname => $plugin) {
$settings = new admin_settingpage($subtype . '_'.$plugin,
$pluginname, 'moodle/site:config', !$module->visible);
@ -473,8 +471,5 @@ class assign_plugin_manager {
$admin->add($subtype . 'plugins', $settings);
}
// Reset settings to the original point in the tree
$settings = $tempsettings;
}
}