aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-04-16 00:17:31 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-04-16 00:17:31 +0200
commitc4e3cc0850b737e3a1537035e3bd6594014203b4 (patch)
tree8caaf207b2774bba1bb7c27580b6e568ba42d853
parent07442211b9f4966b70d936039c2f2e8be14b302e (diff)
parent62a729e85efe92bd268c691b6b73bdf379d8fb8e (diff)
downloadforums-c4e3cc0850b737e3a1537035e3bd6594014203b4.tar
forums-c4e3cc0850b737e3a1537035e3bd6594014203b4.tar.gz
forums-c4e3cc0850b737e3a1537035e3bd6594014203b4.tar.bz2
forums-c4e3cc0850b737e3a1537035e3bd6594014203b4.tar.xz
forums-c4e3cc0850b737e3a1537035e3bd6594014203b4.zip
Merge pull request #2301 from rxu/ticket/12401
[ticket/12401] Add $topic_data array to core.viewtopic_modify_post_row event * rxu/ticket/12401: [ticket/12401] Pass more data to core.viewtopic_modify_post_row event
-rw-r--r--phpBB/viewtopic.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 7fe4dac0bd..ad7e8c29bc 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -1668,15 +1668,18 @@ for ($i = 0, $end = sizeof($post_list); $i < $end; ++$i)
* @var int start Start item of this page
* @var int current_row_number Number of the post on this page
* @var int end Number of posts on this page
+ * @var int total_posts Total posts count
* @var array row Array with original post and user data
* @var array cp_row Custom profile field data of the poster
* @var array attachments List of attachments
* @var array user_poster_data Poster's data from user cache
* @var array post_row Template block array of the post
+ * @var array topic_data Array with topic data
* @since 3.1-A1
* @change 3.1.0-a3 Added vars start, current_row_number, end, attachments
+ * @change 3.1.0-b3 Added topic_data array, total_posts
*/
- $vars = array('start', 'current_row_number', 'end', 'row', 'cp_row', 'attachments', 'user_poster_data', 'post_row');
+ $vars = array('start', 'current_row_number', 'end', 'total_posts', 'row', 'cp_row', 'attachments', 'user_poster_data', 'post_row', 'topic_data');
extract($phpbb_dispatcher->trigger_event('core.viewtopic_modify_post_row', compact($vars)));
$i = $current_row_number;