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:
Paul Holden 2022-12-19 16:07:34 +00:00
parent 7e1aa845c7
commit 0563f72142

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));
}
/**