mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
Fix bug #46355 - Only change topic/post icon if icons are enabled and user is allowed to.
Authorised by: acydburn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9580 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -606,7 +606,11 @@ if ($submit || $preview || $refresh)
|
||||
$post_data['orig_topic_type'] = $post_data['topic_type'];
|
||||
$post_data['topic_type'] = request_var('topic_type', (($mode != 'post') ? (int) $post_data['topic_type'] : POST_NORMAL));
|
||||
$post_data['topic_time_limit'] = request_var('topic_time_limit', (($mode != 'post') ? (int) $post_data['topic_time_limit'] : 0));
|
||||
$post_data['icon_id'] = request_var('icon', 0);
|
||||
|
||||
if ($post_data['enable_icons'] && $auth->acl_get('f_icons', $forum_id))
|
||||
{
|
||||
$post_data['icon_id'] = request_var('icon', (int) $post_data['icon_id']);
|
||||
}
|
||||
|
||||
$post_data['enable_bbcode'] = (!$bbcode_status || isset($_POST['disable_bbcode'])) ? false : true;
|
||||
$post_data['enable_smilies'] = (!$smilies_status || isset($_POST['disable_smilies'])) ? false : true;
|
||||
|
Reference in New Issue
Block a user