aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewforum.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2003-04-01 21:11:07 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2003-04-01 21:11:07 +0000
commit8a04466b3f304399774acea9c17002c791deaaac (patch)
treeba4d167b8155081bb0ad4abbf54bdedbf14f2837 /phpBB/viewforum.php
parentd054df50072dcb958dfc10f033d0d1ba87190c04 (diff)
downloadforums-8a04466b3f304399774acea9c17002c791deaaac.tar
forums-8a04466b3f304399774acea9c17002c791deaaac.tar.gz
forums-8a04466b3f304399774acea9c17002c791deaaac.tar.bz2
forums-8a04466b3f304399774acea9c17002c791deaaac.tar.xz
forums-8a04466b3f304399774acea9c17002c791deaaac.zip
show the attach icon in viewforum. added cached extensions (we need them within viewtopic)
git-svn-id: file:///svn/phpbb/trunk@3777 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewforum.php')
-rw-r--r--phpBB/viewforum.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php
index 147583472c..eb1a640ba3 100644
--- a/phpBB/viewforum.php
+++ b/phpBB/viewforum.php
@@ -461,6 +461,7 @@ if ($forum_data['forum_postable'])
'NEWEST_POST_IMG' => $newest_post_img,
'TOPIC_FOLDER_IMG' => $user->img($folder_img, $folder_alt),
'TOPIC_ICON_IMG' => (!empty($icons[$row['icon_id']])) ? '<img src="' . $config['icons_path'] . '/' . $icons[$row['icon_id']]['img'] . '" width="' . $icons[$row['icon_id']]['width'] . '" height="' . $icons[$row['icon_id']]['height'] . '" alt="" title="" />' : '',
+ 'ATTACH_ICON_IMG' => ($auth->acl_get('f_download', $forum_id) && $row['topic_attachment']) ? $user->img('icon_attach', '') : '',
'S_ROW_COUNT' => $i,
'S_TOPIC_TYPE_SWITCH' => ($s_type_switch == $s_type_switch_test) ? -1 : $s_type_switch_test,