MDL-29504 plugin_callback() - undelete global $CFG that was supposed to be unused

This commit is contained in:
Petr Skoda 2011-09-27 10:12:57 +02:00
parent 260316ce48
commit 3340dae60a

View file

@ -7552,6 +7552,7 @@ function get_list_of_plugins($directory='mod', $exclude='', $basedir='') {
* @return mixed
*/
function plugin_callback($type, $name, $feature, $action, $options = null, $default=null) {
global $CFG; // this is needed for require_once() bellow
$component = clean_param($type . '_' . $name, PARAM_COMPONENT);
if (empty($component)) {