From 507c67851489650fe891482d72f4024489a3b6b0 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Thu, 20 Mar 2003 00:31:36 +0000 Subject: [PATCH] Add forum image to template vars git-svn-id: file:///svn/phpbb/trunk@3684 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_display.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php index 599394c8e3..448ff87583 100644 --- a/phpBB/includes/functions_display.php +++ b/phpBB/includes/functions_display.php @@ -221,7 +221,8 @@ function display_forums($root_data = '', $display_moderators = TRUE) 'FORUM_FOLDER_IMG' => $user->img($folder_image, $folder_alt), 'FORUM_NAME' => $row['forum_name'], - 'FORUM_DESC' => $row['forum_desc'], + 'FORUM_DESC' => $row['forum_desc'], + 'FORUM_IMG' => $row['forum_image'], 'POSTS' => $row['forum_posts'], 'TOPICS' => $row['forum_topics'], @@ -233,13 +234,13 @@ function display_forums($root_data = '', $display_moderators = TRUE) 'L_MODERATOR_STR' => $l_moderator, 'L_FORUM_FOLDER_ALT'=> $folder_alt, - 'U_VIEWFORUM' => 'viewforum.' . $phpEx . $SID . '&f=' . $row['forum_id'] - )); + 'U_VIEWFORUM' => 'viewforum.' . $phpEx . $SID . '&f=' . $row['forum_id']) + ); } $template->assign_vars(array( 'S_HAS_SUBFORUM' => ($visible_forums) ? TRUE : FALSE, - 'L_SUBFORUM' => ($visible_forums == 1) ? $user->lang['SUBFORUM'] : $user->lang['SUBFORUMS'] - )); + 'L_SUBFORUM' => ($visible_forums == 1) ? $user->lang['SUBFORUM'] : $user->lang['SUBFORUMS']) + ); } ?> \ No newline at end of file