aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorTom Beddard <subblue@users.sourceforge.net>2005-12-30 12:52:18 +0000
committerTom Beddard <subblue@users.sourceforge.net>2005-12-30 12:52:18 +0000
commit24462a3e4ed3a489eb84c2866027af557c780eda (patch)
treee951252ee00ef17d0f029a8cadb0d68727afdbf6 /phpBB/includes
parentc4bf44e579178f8628a8d57265fcafc58f59fb22 (diff)
downloadforums-24462a3e4ed3a489eb84c2866027af557c780eda.tar
forums-24462a3e4ed3a489eb84c2866027af557c780eda.tar.gz
forums-24462a3e4ed3a489eb84c2866027af557c780eda.tar.bz2
forums-24462a3e4ed3a489eb84c2866027af557c780eda.tar.xz
forums-24462a3e4ed3a489eb84c2866027af557c780eda.zip
Preliminary folder icon display for bookmarked topics
git-svn-id: file:///svn/phpbb/trunk@5404 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/ucp/ucp_main.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/phpBB/includes/ucp/ucp_main.php b/phpBB/includes/ucp/ucp_main.php
index 939e5c63df..2ade45c779 100644
--- a/phpBB/includes/ucp/ucp_main.php
+++ b/phpBB/includes/ucp/ucp_main.php
@@ -127,6 +127,7 @@ class ucp_main
'LAST_POST_IMG' => $user->img('icon_post_latest', 'VIEW_LATEST_POST'),
'NEWEST_POST_IMG' => $user->img('icon_post_newest', 'VIEW_NEWEST_POST'),
'TOPIC_FOLDER_IMG' => $user->img($folder_img, $folder_alt),
+ 'TOPIC_FOLDER_IMG_SRC' => $user->img($folder_img, $folder_alt, false, '', 'src'),
'ATTACH_ICON_IMG' => ($auth->acl_gets('f_download', 'u_download', $forum_id) && $row['topic_attachment']) ? $user->img('icon_attach', '') : '',
'S_USER_POSTED' => (!empty($row['topic_posted']) && $row['topic_posted']) ? true : false,
@@ -601,15 +602,16 @@ class ucp_main
{
$forum_id = $row['forum_id'];
$topic_id = $row['b_topic_id'];
-
+
$replies = ($auth->acl_get('m_approve', $forum_id)) ? $row['topic_replies_real'] : $row['topic_replies'];
// Get folder img, topic status/type related informations
$folder_img = $folder_alt = $topic_type = '';
- $unread_topic = topic_status($row, $replies, time(), time(), $folder_img, $folder_alt, $topic_type);
-
+ $unread_topic = false; // TODO: get proper unread status
+
+ topic_status($row, $replies, $unread_topic, $folder_img, $folder_alt, $topic_type);
$view_topic_url = "viewtopic.$phpEx$SID&amp;f=$forum_id&amp;t=$topic_id";
-
+
$template->assign_block_vars('topicrow', array(
'FORUM_ID' => $forum_id,
'TOPIC_ID' => $topic_id,
@@ -628,6 +630,7 @@ class ucp_main
'POSTED_AT' => $user->format_date($row['topic_time']),
'TOPIC_FOLDER_IMG' => $user->img($folder_img, $folder_alt),
+ 'TOPIC_FOLDER_IMG_SRC' => $user->img($folder_img, $folder_alt, false, '', 'src'),
'ATTACH_ICON_IMG' => ($auth->acl_gets('f_download', 'u_download', $forum_id) && $row['topic_attachment']) ? $user->img('icon_attach', '') : '',
'LAST_POST_IMG' => $user->img('icon_post_latest', 'VIEW_LATEST_POST'),