Permalink
Browse files

MDL-32903: Remove unused variable $tempsettings from mod_assign

This was left over from when I removed all the pass by reference calls.
  • Loading branch information...
1 parent 71d7bc3 commit d37ec15ca151a04da837f5da52a7455b0a21cf3c Damyon Wiese committed May 10, 2012
Showing with 0 additions and 5 deletions.
  1. +0 −5 mod/assign/adminlib.php
View
5 mod/assign/adminlib.php
@@ -460,8 +460,6 @@ static function add_admin_assign_plugin_settings($subtype, part_of_admin_tree $a
}
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 @@ static function add_admin_assign_plugin_settings($subtype, part_of_admin_tree $a
$admin->add($subtype . 'plugins', $settings);
}
- // Reset settings to the original point in the tree
- $settings = $tempsettings;
-
}
}

0 comments on commit d37ec15

Please sign in to comment.