From 92561d7f36508b7e0271926e417adf0e2e53916b Mon Sep 17 00:00:00 2001 From: Appleman1234 Date: Sun, 25 Sep 2022 13:22:40 +1000 Subject: Initial attempt a switch to composer and PHP-8.1 compatibility --- templates/mod/view_ip.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'templates/mod/view_ip.html') diff --git a/templates/mod/view_ip.html b/templates/mod/view_ip.html index 4bacc7f6..e2dbf14c 100644 --- a/templates/mod/view_ip.html +++ b/templates/mod/view_ip.html @@ -14,11 +14,11 @@ {% if mod|hasPermission(config.mod.view_notes) %}
- {% set notes_on_record = 'note' ~ (notes|count != 1 ? 's' : '') ~ ' on record' %} - {{ notes|count }} {% trans notes_on_record %} + {% set notes_on_record = 'note' ~ (notes|length != 1 ? 's' : '') ~ ' on record' %} + {{ notes|length }} {% trans notes_on_record %} - {% if notes|count > 0 %} + {% if notes|length > 0 %} @@ -81,10 +81,10 @@ {% endif %} -{% if bans|count > 0 and mod|hasPermission(config.mod.view_ban) %} +{% if bans|length > 0 and mod|hasPermission(config.mod.view_ban) %}
- {% set bans_on_record = 'ban' ~ (bans|count != 1 ? 's' : '') ~ ' on record' %} - {{ bans|count }} {% trans bans_on_record %} + {% set bans_on_record = 'ban' ~ (bans|length != 1 ? 's' : '') ~ ' on record' %} + {{ bans|length }} {% trans bans_on_record %} {% for ban in bans %}
@@ -174,7 +174,7 @@
{% endif %} -{% if logs|count > 0 %} +{% if logs|length > 0 %}
History
{% trans 'Staff' %}
-- cgit v1.3