From a31f3245fb319f15134014465c544293892acf62 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Wed, 28 Feb 2024 12:25:05 +0700 Subject: [PATCH] Added showing poll status in "Watching topics" page --- library/includes/ucp/topic_watch.php | 1 + styles/templates/default/usercp_topic_watch.tpl | 1 + 2 files changed, 2 insertions(+) diff --git a/library/includes/ucp/topic_watch.php b/library/includes/ucp/topic_watch.php index 6591d4bc..a3c453a1 100644 --- a/library/includes/ucp/topic_watch.php +++ b/library/includes/ucp/topic_watch.php @@ -94,6 +94,7 @@ if ($watch_count > 0) 'LAST_POST_RAW' => $watch[$i]['topic_last_post_time'], 'LAST_POST_ID' => $watch[$i]['topic_last_post_id'], 'IS_UNREAD' => $is_unread, + 'POLL' => !IS_GUEST && $watch[$i]['topic_vote'], 'TOPIC_ICON' => get_topic_icon($watch[$i], $is_unread), 'PAGINATION' => ($watch[$i]['topic_status'] == TOPIC_MOVED) ? '' : build_topic_pagination(TOPIC_URL . $watch[$i]['topic_id'], $watch[$i]['topic_replies'], $bb_cfg['posts_per_page']), )); diff --git a/styles/templates/default/usercp_topic_watch.tpl b/styles/templates/default/usercp_topic_watch.tpl index 1635972a..5e1c102c 100644 --- a/styles/templates/default/usercp_topic_watch.tpl +++ b/styles/templates/default/usercp_topic_watch.tpl @@ -106,6 +106,7 @@ td.topic_id { cursor: pointer; } {watch.FORUM_TITLE} + {L_TOPIC_POLL} {watch.TOPIC_TITLE}
 [{ICON_GOTOPOST}{L_GOTO_SHORT} {watch.PAGINATION} ]