From 432e18265495e76cc9e13e838ca16e93ed5c7e2a Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Tue, 27 Sep 2011 02:03:50 +0200 Subject: [PATCH] MDL-29504 plugin_callback() - delete some unused code --- lib/moodlelib.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 402e79b4625..dabd5a85bbf 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -7552,7 +7552,6 @@ function get_list_of_plugins($directory='mod', $exclude='', $basedir='') { * @return mixed */ function plugin_callback($type, $name, $feature, $action, $options = null, $default=null) { - global $CFG; $component = clean_param($type . '_' . $name, PARAM_COMPONENT); if (empty($component)) { @@ -7562,8 +7561,6 @@ function plugin_callback($type, $name, $feature, $action, $options = null, $defa list($type, $name) = normalize_component($component); $component = $type . '_' . $name; - $function = null; - $function = $component.'_'.$feature.'_'.$action; $oldfunction = $name.'_'.$feature.'_'.$action;