1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-01-31 04:13:49 +01:00

mod.php: remove last mod_page_* handler, use only mod_* for mod pages

This commit is contained in:
Zankaria 2024-08-11 15:45:24 +02:00
parent f3e81c80d9
commit d1b06acbe9
2 changed files with 1 additions and 3 deletions

View File

@ -818,7 +818,7 @@ function mod_ip_remove_note($cloaked_ip, $id) {
function mod_page_ip($cip) {
function mod_ip($cip) {
$ip = uncloak_ip($cip);
global $config, $mod;

View File

@ -188,8 +188,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 {