mirror of
https://github.com/moodle/moodle.git
synced 2025-03-18 22:50:19 +01:00
MDL-76725 mod_wiki: avoid named arguments in real path callback.
See also f4fb91ae. PHP8 now supports named arguments in calls to the `call_user_func_array` method, which can result in differing behaviour compared to PHP7, e.g. in this case it was throwing an exception due to an unknown named parameter.
This commit is contained in:
parent
7e1aa845c7
commit
0563f72142
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user