diff --git a/inc/mod/pages.php b/inc/mod/pages.php index b980c844..3765c61c 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -868,7 +868,7 @@ function mod_ip_remove_note($ip, $id) { header('Location: ?/IP/' . $ip . '#notes', true, $config['redirect_http']); } -function mod_page_ip($ip, string $encoded_cursor = '') { +function mod_ip($ip, string $encoded_cursor = '') { global $config, $mod; if (filter_var($ip, FILTER_VALIDATE_IP) === false) diff --git a/mod.php b/mod.php index d5946d0d..b799857a 100644 --- a/mod.php +++ b/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 {