forked from leftypol/leftypol
mod.php: remove last mod_page_* handler, use only mod_* for mod pages
This commit is contained in:
parent
98fb50e050
commit
cb71e00b50
2 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||
|
|
2
mod.php
2
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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue