1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-01-19 01:24:05 +01:00

Merge pull request #787 from Zankaria/mod-page

Unify mod page handlers
This commit is contained in:
Lorenzo Yario 2024-08-11 17:02:57 -07:00 committed by GitHub
commit 420ec4a852
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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 {