Add forum image to template vars

git-svn-id: file:///svn/phpbb/trunk@3684 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2003-03-20 00:31:36 +00:00
parent a884b9f189
commit 507c678514

View file

@ -222,6 +222,7 @@ function display_forums($root_data = '', $display_moderators = TRUE)
'FORUM_FOLDER_IMG' => $user->img($folder_image, $folder_alt), 'FORUM_FOLDER_IMG' => $user->img($folder_image, $folder_alt),
'FORUM_NAME' => $row['forum_name'], 'FORUM_NAME' => $row['forum_name'],
'FORUM_DESC' => $row['forum_desc'], 'FORUM_DESC' => $row['forum_desc'],
'FORUM_IMG' => $row['forum_image'],
'POSTS' => $row['forum_posts'], 'POSTS' => $row['forum_posts'],
'TOPICS' => $row['forum_topics'], 'TOPICS' => $row['forum_topics'],
@ -233,13 +234,13 @@ function display_forums($root_data = '', $display_moderators = TRUE)
'L_MODERATOR_STR' => $l_moderator, 'L_MODERATOR_STR' => $l_moderator,
'L_FORUM_FOLDER_ALT'=> $folder_alt, '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( $template->assign_vars(array(
'S_HAS_SUBFORUM' => ($visible_forums) ? TRUE : FALSE, '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'])
)); );
} }
?> ?>