mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
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:
parent
71d7bc34a8
commit
d37ec15ca1
1 changed files with 0 additions and 5 deletions
|
@ -460,8 +460,6 @@ class assign_plugin_manager {
|
||||||
}
|
}
|
||||||
ksort($pluginsbyname);
|
ksort($pluginsbyname);
|
||||||
|
|
||||||
// We need to reset settings after the loop
|
|
||||||
$tempsettings = $settings;
|
|
||||||
foreach ($pluginsbyname as $pluginname => $plugin) {
|
foreach ($pluginsbyname as $pluginname => $plugin) {
|
||||||
$settings = new admin_settingpage($subtype . '_'.$plugin,
|
$settings = new admin_settingpage($subtype . '_'.$plugin,
|
||||||
$pluginname, 'moodle/site:config', !$module->visible);
|
$pluginname, 'moodle/site:config', !$module->visible);
|
||||||
|
@ -473,8 +471,5 @@ class assign_plugin_manager {
|
||||||
$admin->add($subtype . 'plugins', $settings);
|
$admin->add($subtype . 'plugins', $settings);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reset settings to the original point in the tree
|
|
||||||
$settings = $tempsettings;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue