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:
parent
f3e81c80d9
commit
d1b06acbe9
@ -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;
|
||||
|
||||
|
2
mod.php
2
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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user