[ticket/16274] Fix feed event referring to undefined variables

PHPBB3-16274
This commit is contained in:
Marc Alexander 2019-12-30 11:46:19 +01:00
parent 4956dc3197
commit a3276c3ffe
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -308,14 +308,13 @@ class feed
* Event to modify the feed row * Event to modify the feed row
* *
* @event core.feed_modify_feed_row * @event core.feed_modify_feed_row
* @var int forum_id Forum ID * @var feed_interface feed Feed instance
* @var string mode Feeds mode (forums|topics|topics_new|topics_active|news)
* @var array row Array with feed data * @var array row Array with feed data
* @var int topic_id Topic ID
* *
* @since 3.1.10-RC1 * @since 3.1.10-RC1
* @changed 3.3.0 Replace forum_id, mode, topic_id with feed instance
*/ */
$vars = array('forum_id', 'mode', 'row', 'topic_id'); $vars = array('feed', 'row');
extract($this->phpbb_dispatcher->trigger_event('core.feed_modify_feed_row', compact($vars))); extract($this->phpbb_dispatcher->trigger_event('core.feed_modify_feed_row', compact($vars)));
// BBCode options to correctly disable urls, smilies, bbcode... // BBCode options to correctly disable urls, smilies, bbcode...