mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
MDL-54837 tags: allow to specify static function as callback
This commit is contained in:
parent
6ee5e596b8
commit
64e9180d2e
@ -1297,7 +1297,7 @@ class core_tag_tag {
|
||||
require_once($CFG->dirroot . '/' . ltrim($tagarea->callbackfile, '/'));
|
||||
}
|
||||
$callback = $tagarea->callback;
|
||||
return $callback($this, $exclusivemode, $fromctx, $ctx, $rec, $page);
|
||||
return call_user_func_array($callback, [$this, $exclusivemode, $fromctx, $ctx, $rec, $page]);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user