mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 03:54:10 +01:00
[feature/php-events] Fix doc and naming of core.viewtopic_cache_guest_data
PHPBB3-9550
This commit is contained in:
parent
3f710b58a5
commit
ff12de97b7
@ -1108,8 +1108,17 @@ while ($row = $db->sql_fetchrow($result))
|
||||
'allow_pm' => 0,
|
||||
);
|
||||
|
||||
$vars = array('user_cache_data', 'row', 'poster_id');
|
||||
extract($phpbb_dispatcher->trigger_event('core.viewtopic_user_cache_guest', compact($vars)));
|
||||
/**
|
||||
* Modify the guests user data displayed with the posts
|
||||
*
|
||||
* @event core.viewtopic_cache_guest_data
|
||||
* @var array user_cache_data Array with the user's data
|
||||
* @var int poster_id Poster's user id
|
||||
* @var array row Array with original user and post data
|
||||
* @since 3.1-A1
|
||||
*/
|
||||
$vars = array('user_cache_data', 'poster_id', 'row');
|
||||
extract($phpbb_dispatcher->trigger_event('core.viewtopic_cache_guest_data', compact($vars)));
|
||||
|
||||
$user_cache[$poster_id] = $user_cache_data;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user