mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-29504 plugin_callback() - undelete global $CFG that was supposed to be unused
This commit is contained in:
parent
260316ce48
commit
3340dae60a
1 changed files with 1 additions and 0 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue