22/**
33 *
44 * @package QuickReply Reloaded
5- * @copyright (c) 2014 - 2015 Tatiana5 and LavIgor
5+ * @copyright (c) 2014 - 2016 Tatiana5 and LavIgor
66 * @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
77 *
88 */
@@ -218,7 +218,7 @@ public function viewtopic_modify_data($event)
218218 }
219219
220220 // HTML, BBCode, Smilies, Images, Url, Flash and Quote status
221- $ bbcode_status = ($ this ->config ['allow_bbcode ' ] && $ this ->config [ ' qr_bbcode ' ] && $ this -> auth ->acl_get ('f_bbcode ' , $ forum_id )) ? true : false ;
221+ $ bbcode_status = ($ this ->config ['allow_bbcode ' ] && $ this ->auth ->acl_get ('f_bbcode ' , $ forum_id )) ? true : false ;
222222 $ smilies_status = ($ this ->config ['allow_smilies ' ] && $ this ->config ['qr_smilies ' ] && $ this ->auth ->acl_get ('f_smilies ' , $ forum_id )) ? true : false ;
223223 $ img_status = ($ bbcode_status && $ this ->auth ->acl_get ('f_img ' , $ forum_id )) ? true : false ;
224224 $ url_status = ($ this ->config ['allow_post_links ' ]) ? true : false ;
@@ -239,6 +239,7 @@ public function viewtopic_modify_data($event)
239239
240240 $ this ->template ->assign_vars (array (
241241 'S_BBCODE_ALLOWED ' => ($ bbcode_status ) ? 1 : 0 ,
242+ 'S_BBCODE_BUTTONS ' => $ bbcode_status && $ this ->config ['qr_bbcode ' ],
242243 'S_SMILIES_ALLOWED ' => $ smilies_status ,
243244 'S_BBCODE_IMG ' => $ img_status ,
244245 'S_LINKS_ALLOWED ' => $ url_status ,
0 commit comments