diff options
| author | Joas Schilling <nickvergessen@gmx.de> | 2012-08-06 16:12:17 +0200 |
|---|---|---|
| committer | Joas Schilling <nickvergessen@gmx.de> | 2012-08-06 16:44:40 +0200 |
| commit | ff12de97b72ef46a8bde5aca561e3cc18b7fa614 (patch) | |
| tree | 58a0b4f32c30d680017d1c86e26cb8548139768d | |
| parent | 3f710b58a5a7c371b8016c808a756616a77f4503 (diff) | |
| download | forums-ff12de97b72ef46a8bde5aca561e3cc18b7fa614.tar forums-ff12de97b72ef46a8bde5aca561e3cc18b7fa614.tar.gz forums-ff12de97b72ef46a8bde5aca561e3cc18b7fa614.tar.bz2 forums-ff12de97b72ef46a8bde5aca561e3cc18b7fa614.tar.xz forums-ff12de97b72ef46a8bde5aca561e3cc18b7fa614.zip | |
[feature/php-events] Fix doc and naming of core.viewtopic_cache_guest_data
PHPBB3-9550
| -rw-r--r-- | phpBB/viewtopic.php | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 22b1bd9dea..1939d1f73b 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -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; |
