aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-08-06 15:37:02 +0200
committerJoas Schilling <nickvergessen@gmx.de>2012-08-06 15:37:02 +0200
commit3f710b58a5a7c371b8016c808a756616a77f4503 (patch)
treec2e0fc8bdfd65936b9cd689a9cc45cd260e78054
parent93912a2649eadae1e8cf0f3e24b0ddf7223316b3 (diff)
downloadforums-3f710b58a5a7c371b8016c808a756616a77f4503.tar
forums-3f710b58a5a7c371b8016c808a756616a77f4503.tar.gz
forums-3f710b58a5a7c371b8016c808a756616a77f4503.tar.bz2
forums-3f710b58a5a7c371b8016c808a756616a77f4503.tar.xz
forums-3f710b58a5a7c371b8016c808a756616a77f4503.zip
[feature/php-events] Fix doc and naming of core.viewtopic_get_post_data
PHPBB3-9550
-rw-r--r--phpBB/viewtopic.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index ce73001c78..22b1bd9dea 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -987,8 +987,15 @@ $sql_ary = array(
AND u.user_id = p.poster_id',
);
+/**
+* Event to modify the SQL query before the post and poster data is queried
+*
+* @event core.viewtopic_get_post_data
+* @var array sql_ary The SQL array to get the data of posts and posters
+* @since 3.1-A1
+*/
$vars = array('sql_ary');
-extract($phpbb_dispatcher->trigger_event('core.viewtopic_get_userdata', compact($vars)));
+extract($phpbb_dispatcher->trigger_event('core.viewtopic_get_post_data', compact($vars)));
$sql = $db->sql_build_query('SELECT', $sql_ary);
$result = $db->sql_query($sql);