[ticket/13540] Added var row to both events

PHPBB3-13540
This commit is contained in:
kasimi 2015-01-25 13:01:02 +01:00
parent 12fba95892
commit 33d7eb69ef
2 changed files with 4 additions and 0 deletions

View file

@ -1210,6 +1210,7 @@ function topic_review($topic_id, $forum_id, $mode = 'topic_review', $cur_post_id
* @var int cur_post_id Post offset id
* @var int current_row_number Number of the current row being iterated
* @var array post_row Template block array of the current post
* @var array row Array with original post and user data
* @since 3.1.4-RC1
*/
$vars = array(
@ -1219,6 +1220,7 @@ function topic_review($topic_id, $forum_id, $mode = 'topic_review', $cur_post_id
'cur_post_id',
'current_row_number',
'post_row',
'row',
);
extract($phpbb_dispatcher->trigger_event('core.topic_review_modify_row', compact($vars)));

View file

@ -266,6 +266,7 @@ function mcp_topic_view($id, $mode, $action)
* @var int start Start item of this page
* @var int current_row_number Number of the post on this page
* @var array post_row Template block array of the current post
* @var array row Array with original post and user data
* @since 3.1.4-RC1
*/
$vars = array(
@ -276,6 +277,7 @@ function mcp_topic_view($id, $mode, $action)
'start',
'current_row_number',
'post_row',
'row',
);
extract($phpbb_dispatcher->trigger_event('core.mcp_topic_review_modify_row', compact($vars)));