mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[feature/events] Adding ledge viewtopic_user_cache_guest
Used by phpBB Gallery PHPBB3-9550
This commit is contained in:
parent
dcf97714a5
commit
2581b0e1e3
1 changed files with 8 additions and 1 deletions
|
@ -1068,7 +1068,7 @@ while ($row = $db->sql_fetchrow($result))
|
||||||
{
|
{
|
||||||
if ($poster_id == ANONYMOUS)
|
if ($poster_id == ANONYMOUS)
|
||||||
{
|
{
|
||||||
$user_cache[$poster_id] = array(
|
$user_cache_data = array(
|
||||||
'joined' => '',
|
'joined' => '',
|
||||||
'posts' => '',
|
'posts' => '',
|
||||||
'from' => '',
|
'from' => '',
|
||||||
|
@ -1103,6 +1103,13 @@ while ($row = $db->sql_fetchrow($result))
|
||||||
'allow_pm' => 0,
|
'allow_pm' => 0,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$vars = array('user_cache_data', 'row', 'poster_id');
|
||||||
|
$event = new phpbb_event_data(compact($vars));
|
||||||
|
$phpbb_dispatcher->dispatch('core.viewtopic_user_cache_guest', $event);
|
||||||
|
extract($event->get_data_filtered($vars));
|
||||||
|
|
||||||
|
$user_cache[$poster_id] = $user_cache_data;
|
||||||
|
|
||||||
get_user_rank($row['user_rank'], false, $user_cache[$poster_id]['rank_title'], $user_cache[$poster_id]['rank_image'], $user_cache[$poster_id]['rank_image_src']);
|
get_user_rank($row['user_rank'], false, $user_cache[$poster_id]['rank_title'], $user_cache[$poster_id]['rank_image'], $user_cache[$poster_id]['rank_image_src']);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue