fixed topic icon bug

This commit is contained in:
Ice
2008-09-20 21:18:46 +00:00
parent 4f872ae037
commit ff585ae4d3
2 changed files with 14 additions and 2 deletions

View File

@@ -305,13 +305,19 @@ else
}
}
$topic_icons = false;
if( isset($fetch_news['topic_icons']) )
{
$topic_icons = true;
}
$template->assign_vars(array(
'NEWEST_POST_IMG' => $user->img('icon_topic_newest', 'VIEW_NEWEST_POST'),
'READ_POST_IMG' => $user->img('icon_topic_latest', 'VIEW_LATEST_POST'),
'GOTO_PAGE_IMG' => $user->img('icon_post_target', 'GOTO_PAGE'),
'S_DISPLAY_ANNOUNCEMENTS' => true,
'S_DISPLAY_ANNOUNCEMENTS_RVS' => ( $portal_config['portal_show_announcements_replies_views'] ) ? true : false,
'S_TOPIC_ICONS' => $fetch_news['topic_icons'],
'S_TOPIC_ICONS' => $topic_icons,
));
?>

View File

@@ -290,6 +290,12 @@ else
}
}
$topic_icons = false;
if( isset($fetch_news['topic_icons']) )
{
$topic_icons = true;
}
$template->assign_vars(array(
'NEWEST_POST_IMG' => $user->img('icon_topic_newest', 'VIEW_NEWEST_POST'),
'READ_POST_IMG' => $user->img('icon_topic_latest', 'VIEW_LATEST_POST'),
@@ -298,7 +304,7 @@ $template->assign_vars(array(
'POSTED_BY_TEXT' => ( $portal_config['portal_news_show_last'] ) ? $user->lang['LAST_POST'] : $user->lang['POSTED'],
'S_DISPLAY_NEWS' => true,
'S_DISPLAY_NEWS_RVS' => ( $portal_config['portal_show_news_replies_views'] ) ? true : false,
'S_TOPIC_ICONS' => $fetch_news['topic_icons'],
'S_TOPIC_ICONS' => $topic_icons,
));
?>