mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[feature/php-events] Fix doc and naming of core.viewtopic_get_post_data
PHPBB3-9550
This commit is contained in:
parent
93912a2649
commit
3f710b58a5
1 changed files with 8 additions and 1 deletions
|
@ -987,8 +987,15 @@ $sql_ary = array(
|
||||||
AND u.user_id = p.poster_id',
|
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');
|
$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);
|
$sql = $db->sql_build_query('SELECT', $sql_ary);
|
||||||
$result = $db->sql_query($sql);
|
$result = $db->sql_query($sql);
|
||||||
|
|
Loading…
Add table
Reference in a new issue