diff options
| author | Benjamin Southall <applemansigloo@gmail.com> | 2019-08-08 21:20:48 +1000 |
|---|---|---|
| committer | Benjamin Southall <applemansigloo@gmail.com> | 2019-08-08 21:20:48 +1000 |
| commit | 896558faddc81b93e0afb73d56bc7f7962086af8 (patch) | |
| tree | f99c2b54bfc0f554122c807c23650f0f3254f134 /templates/mod/users.html | |
| parent | 309c4db302236e363d26a9cff209bd0e3aa50194 (diff) | |
Fixes count(): Parameter must be an array or an object that implements Countable as well as PHP 7.3 regression in users from upstream 3a41c24e6e5bcea2f4b9f328ddf5ff0cb8a8b2e8
Diffstat (limited to 'templates/mod/users.html')
| -rw-r--r-- | templates/mod/users.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/mod/users.html b/templates/mod/users.html index 6f42ce2a..4f02c524 100644 --- a/templates/mod/users.html +++ b/templates/mod/users.html @@ -47,10 +47,10 @@ </td> {% endif %} <td> - {% if mod|hasPermission(config.mod.promoteusers) and user.type < constant(config.mod.groups[0:-1]|last) %} + {% if mod|hasPermission(config.mod.promoteusers) and user.type < constant(config.mod.groups[0:-1]|last|upper) %} <a style="float:left;text-decoration:none" href="?/users/{{ user.id }}/promote/{{ user.promote_token }}" title="{% trans 'Promote' %}">▲</a> {% endif %} - {% if mod|hasPermission(config.mod.promoteusers) and user.type > constant(config.mod.groups|first) %} + {% if mod|hasPermission(config.mod.promoteusers) and user.type > constant(config.mod.groups|first|upper) %} <a style="float:left;text-decoration:none" href="?/users/{{ user.id }}/demote/{{ user.demote_token }}" title="{% trans 'Demote' %}"{% if mod.id == user.id %} onclick="return confirm('{% trans 'Are you sure you want to demote yourself?' %}')"{% endif %}>▼</a> {% endif %} {% if mod|hasPermission(config.mod.modlog) %} |
