From a00538d251281789f389f57140e7a6d1de697c3e Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Thu, 18 Sep 2025 16:39:27 +0200 Subject: [PATCH] [ticket/17175] Correctly define variable for item link PHPBB-17175 --- phpBB/styles/prosilver/template/search_results.html | 8 ++++---- phpBB/styles/prosilver/template/viewforum_body.html | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/phpBB/styles/prosilver/template/search_results.html b/phpBB/styles/prosilver/template/search_results.html index 06a4e32c43..9e8a3c3e9b 100644 --- a/phpBB/styles/prosilver/template/search_results.html +++ b/phpBB/styles/prosilver/template/search_results.html @@ -81,12 +81,12 @@
{% if searchresults.U_NEWEST_POST and searchresults.S_UNREAD_TOPIC and not S_IS_BOT %} - {% set searchresults.U_ITEM_LINK = searchresults.U_NEWEST_POST %} + {% set U_ITEM_LINK = searchresults.U_NEWEST_POST %} {% elseif searchresults.U_VIEW_TOPIC %} - {% set searchresults.U_ITEM_LINK = searchresults.U_VIEW_TOPIC %} + {% set U_ITEM_LINK = searchresults.U_VIEW_TOPIC %} {% endif %} - {% if searchresults.U_ITEM_LINK is defined %} - + {% if U_ITEM_LINK is defined %} + {{ Icon('svg', { 'globe' : searchresults.S_POST_GLOBAL, 'bullhorn' : searchresults.S_POST_ANNOUNCE, diff --git a/phpBB/styles/prosilver/template/viewforum_body.html b/phpBB/styles/prosilver/template/viewforum_body.html index 5a65d59eff..63750e3218 100644 --- a/phpBB/styles/prosilver/template/viewforum_body.html +++ b/phpBB/styles/prosilver/template/viewforum_body.html @@ -159,12 +159,12 @@
{% if topicrow.U_NEWEST_POST and topicrow.S_UNREAD_TOPIC and not S_IS_BOT %} - {% set topicrow.U_ITEM_LINK = topicrow.U_NEWEST_POST %} + {% set U_ITEM_LINK = topicrow.U_NEWEST_POST %} {% elseif topicrow.U_VIEW_TOPIC %} - {% set topicrow.U_ITEM_LINK = topicrow.U_VIEW_TOPIC %} + {% set U_ITEM_LINK = topicrow.U_VIEW_TOPIC %} {% endif %} - {% if topicrow.U_ITEM_LINK is defined %} - + {% if U_ITEM_LINK is defined %} + {{ Icon('svg', { 'globe' : topicrow.S_POST_GLOBAL, 'bullhorn' : topicrow.S_POST_ANNOUNCE,