From d1b06acbe9e98e106e3b270a47854aa2dc77b308 Mon Sep 17 00:00:00 2001 From: Zankaria Date: Sun, 11 Aug 2024 15:45:24 +0200 Subject: [PATCH] mod.php: remove last mod_page_* handler, use only mod_* for mod pages --- inc/mod/pages.php | 2 +- mod.php | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/inc/mod/pages.php b/inc/mod/pages.php index 826e7c6f..46e8fc7e 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -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; diff --git a/mod.php b/mod.php index 5018992d..20cff8e5 100644 --- a/mod.php +++ b/mod.php @@ -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 {