diff options
| author | Appleman1234 <applemansigloo@gmail.com> | 2022-11-20 06:28:57 +1000 |
|---|---|---|
| committer | Appleman1234 <applemansigloo@gmail.com> | 2022-11-20 06:28:57 +1000 |
| commit | 13bd68659b52d36a99be8f77a7ba1b387b0fbbfe (patch) | |
| tree | cb3b66965b4b888656cfd34063d81b1a606b8f1c /templates | |
| parent | 2c69095a1edf7474073451285238659d0f62ce3f (diff) | |
Change count to length for Twig 2 for PHP-8.1 in basic and recent themes
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/themes/basic/index.html | 2 | ||||
| -rw-r--r-- | templates/themes/recent/recent.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/themes/basic/index.html b/templates/themes/basic/index.html index bcff0edf..9ea23b87 100644 --- a/templates/themes/basic/index.html +++ b/templates/themes/basic/index.html @@ -24,7 +24,7 @@ <img src="static/lain_is_cute_datass_small_teal.png" alt="mascot"/> </center> <div class="ban"> - {% if news|count == 0 %} + {% if news|length == 0 %} <p style="text-align:center" class="unimportant">(No news to show.)</p> {% else %} {% for entry in news %} diff --git a/templates/themes/recent/recent.html b/templates/themes/recent/recent.html index 875d46ab..b2e2d33d 100644 --- a/templates/themes/recent/recent.html +++ b/templates/themes/recent/recent.html @@ -35,7 +35,7 @@ <br> <div class="ban" id="global3"> <h2>Latest News</h2> - {% if recent_news|count == 0 %} + {% if recent_news|length == 0 %} <p style="text-align:center" class="unimportant">(No news to show.)</p> {% else %} {% for entry in recent_news %} |
