Merge branch 'MDL-76725-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE

This commit is contained in:
Jun Pataleta 2023-01-19 12:05:06 +08:00
commit 0f28e2b02c

View File

@ -332,7 +332,7 @@ abstract class wiki_markup_parser extends generic_parser {
protected function real_path($url) {
$callbackargs = array_merge(array($url), $this->realpathcallbackargs);
return call_user_func_array($this->realpathcallback, $callbackargs);
return call_user_func_array($this->realpathcallback, array_values($callbackargs));
}
/**