forked from leftypol/leftypol
mod.php: remove last mod_page_* handler, use only mod_* for mod pages
This commit is contained in:
parent
98fb50e050
commit
cb71e00b50
2 changed files with 1 additions and 3 deletions
2
mod.php
2
mod.php
|
@ -201,8 +201,6 @@ foreach ($pages as $uri => $handler) {
|
|||
if (is_string($handler)) {
|
||||
if ($handler[0] == ':') {
|
||||
header('Location: ' . substr($handler, 1), true, $config['redirect_http']);
|
||||
} elseif (is_callable("mod_page_$handler")) {
|
||||
call_user_func_array("mod_page_$handler", $matches);
|
||||
} elseif (is_callable("mod_$handler")) {
|
||||
call_user_func_array("mod_$handler", $matches);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue