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:
@@ -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;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user