diff options
| -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"' : '') + ); + } } } } |
