forked from GithubBackups/vichan
remove named parameters from call_user_func_array calls
This commit is contained in:
parent
47df9c6485
commit
8a9a8553e5
5
mod.php
5
mod.php
@ -180,6 +180,11 @@ foreach ($pages as $uri => $handler) {
|
|||||||
$debug['time']['parse_mod_req'] = '~' . round((microtime(true) - $parse_start_time) * 1000, 2) . 'ms';
|
$debug['time']['parse_mod_req'] = '~' . round((microtime(true) - $parse_start_time) * 1000, 2) . 'ms';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (is_array($matches)) {
|
||||||
|
// we don't want to call named parameters (PHP 8)
|
||||||
|
$matches = array_values($matches);
|
||||||
|
}
|
||||||
|
|
||||||
if (is_string($handler)) {
|
if (is_string($handler)) {
|
||||||
if ($handler[0] == ':') {
|
if ($handler[0] == ':') {
|
||||||
header('Location: ' . substr($handler, 1), true, $config['redirect_http']);
|
header('Location: ' . substr($handler, 1), true, $config['redirect_http']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user