mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
Merge branch 'MDL-32903' of git://github.com/netspotau/moodle-mod_assign
This commit is contained in:
commit
72f1957393
@ -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;
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user