MDL-32903: Remove unused variable $tempsettings from mod_assign

This was left over from when I removed all the pass by reference calls.
This commit is contained in:
Damyon Wiese 2012-05-10 15:44:32 +08:00
parent 71d7bc34a8
commit d37ec15ca1

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;
}
}