diff options
| author | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-01-28 20:53:41 +0000 |
|---|---|---|
| committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2003-01-28 20:53:41 +0000 |
| commit | ba6a3c01390520532fc2465e601145dd8bad6ef0 (patch) | |
| tree | 950155d64af7af8e4ef4a7636b701cab49d1d5d4 /phpBB/posting.php | |
| parent | 043d45c35743c8b00940ef208f49faeb035007a3 (diff) | |
| download | forums-ba6a3c01390520532fc2465e601145dd8bad6ef0.tar forums-ba6a3c01390520532fc2465e601145dd8bad6ef0.tar.gz forums-ba6a3c01390520532fc2465e601145dd8bad6ef0.tar.bz2 forums-ba6a3c01390520532fc2465e601145dd8bad6ef0.tar.xz forums-ba6a3c01390520532fc2465e601145dd8bad6ef0.zip | |
Check for display set when outputting icons
git-svn-id: file:///svn/phpbb/trunk@3396 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
| -rw-r--r-- | phpBB/posting.php | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php index 2ad4d73d08..3ed57389c0 100644 --- a/phpBB/posting.php +++ b/phpBB/posting.php @@ -598,14 +598,17 @@ if (!empty($enable_icons)) foreach ($icons as $id => $data) { - $template->assign_block_vars('topic_icon', array( - 'ICON_ID' => $id, - 'ICON_IMG' => $config['icons_path'] . '/' . $data['img'], - 'ICON_WIDTH' => $data['width'], - 'ICON_HEIGHT' => $data['height'], - - 'S_ICON_CHECKED' => ($id == $icon_id && $mode != 'reply') ? ' checked="checked"' : '') - ); + if ($data['display']) + { + $template->assign_block_vars('topic_icon', array( + 'ICON_ID' => $id, + 'ICON_IMG' => $config['icons_path'] . '/' . $data['img'], + 'ICON_WIDTH' => $data['width'], + 'ICON_HEIGHT' => $data['height'], + + 'S_ICON_CHECKED' => ($id == $icon_id && $mode != 'reply') ? ' checked="checked"' : '') + ); + } } } } |
