1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-10-06 12:41:43 +02:00

[ticket/17175] Correctly define variable for item link

PHPBB-17175
This commit is contained in:
Marc Alexander
2025-09-18 16:39:27 +02:00
parent af6a1aaf4f
commit a00538d251
2 changed files with 8 additions and 8 deletions

View File

@@ -81,12 +81,12 @@
<dl class="row-item">
<dt>
{% 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 %}
<a class="row-item-link{% if searchresults.S_UNREAD_TOPIC %} unread{% else %} read{% endif %}" href="{searchresults.U_NEWEST_POST}" title="{searchresults.TOPIC_FOLDER_IMG_ALT}">
{% if U_ITEM_LINK is defined %}
<a class="row-item-link{% if searchresults.S_UNREAD_TOPIC %} unread{% else %} read{% endif %}" href="{{ U_ITEM_LINK }}" title="{searchresults.TOPIC_FOLDER_IMG_ALT}">
{{ Icon('svg', {
'globe' : searchresults.S_POST_GLOBAL,
'bullhorn' : searchresults.S_POST_ANNOUNCE,

View File

@@ -159,12 +159,12 @@
<dl class="row-item">
<dt>
{% 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 %}
<a class="row-item-link{% if topicrow.S_UNREAD_TOPIC %} unread{% else %} read{% endif %}" href="{topicrow.U_NEWEST_POST}" title="{topicrow.TOPIC_FOLDER_IMG_ALT}">
{% if U_ITEM_LINK is defined %}
<a class="row-item-link{% if topicrow.S_UNREAD_TOPIC %} unread{% else %} read{% endif %}" href="{{ U_ITEM_LINK }}" title="{topicrow.TOPIC_FOLDER_IMG_ALT}">
{{ Icon('svg', {
'globe' : topicrow.S_POST_GLOBAL,
'bullhorn' : topicrow.S_POST_ANNOUNCE,