diff --git a/mod.php b/mod.php index ee76ca42..9333b288 100644 --- a/mod.php +++ b/mod.php @@ -198,7 +198,7 @@ foreach ($pages as $uri => $handler) { } 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); + call_user_func_array("mod_$handler", array_slice($matches, 0, 2)); } else { error("Mod page '$handler' not found!"); } diff --git a/templates/mod/user.html b/templates/mod/user.html index 6cc454d8..71b23b45 100644 --- a/templates/mod/user.html +++ b/templates/mod/user.html @@ -32,10 +32,10 @@ {% trans 'Group' %} diff --git a/templates/mod/view_ip.html b/templates/mod/view_ip.html index d47e6d4f..4d988a65 100644 --- a/templates/mod/view_ip.html +++ b/templates/mod/view_ip.html @@ -2,7 +2,7 @@
{% set notes_on_record = 'note' ~ (notes|count != 1 ? 's' : '') ~ ' on record' %} - {{ notes|count }} {% trans notes_on_record %} + {{ notes|count }} {{ notes_on_record|trans }} {% if notes and notes|length > 0 %}