This commit is contained in:
rusEfi 2018-01-26 16:36:33 -05:00
parent c54877a114
commit fd59f3e909
1 changed files with 3 additions and 1 deletions

View File

@ -109,7 +109,9 @@ class main_listener implements EventSubscriberInterface
{
$topic_attribute = $this->request->variable('attr_id', !empty($event['post_data']['topic_attr_id']) ? \ernadoo\qte\qte::KEEP : 0, false, \phpbb\request\request_interface::POST);
$this->qte->attr_select($event['forum_id'], !empty($event['post_data']['topic_attr_user']) ? $event['post_data']['topic_attr_user'] : 0, (int) $topic_attribute, '', $event['mode']);
# old line $this->qte->attr_select($event['forum_id'], !empty($event['post_data']['topic_attr_user']) ? $event['post_data']['topic_attr_user'] : 0, (int) $topic_attribute, '', $event['mode']);
# custom version see https://github.com/rusefi/rusefi/issues/556
$this->qte->attr_select($event['forum_id'], !empty($event['post_data']['topic_poster']) ? $event['post_data']['topic_poster'] : 0, (int) $topic_attribute, '', $event['mode']);
if ($event['mode'] != 'post')
{