aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-08-06 16:17:29 +0200
committerJoas Schilling <nickvergessen@gmx.de>2012-08-06 16:44:52 +0200
commiteb80d280b15ddb442f290c9722d394f63a9036e3 (patch)
tree09ee2675a011641586503a7cd341e09d040e7b7c
parentff12de97b72ef46a8bde5aca561e3cc18b7fa614 (diff)
downloadforums-eb80d280b15ddb442f290c9722d394f63a9036e3.tar
forums-eb80d280b15ddb442f290c9722d394f63a9036e3.tar.gz
forums-eb80d280b15ddb442f290c9722d394f63a9036e3.tar.bz2
forums-eb80d280b15ddb442f290c9722d394f63a9036e3.tar.xz
forums-eb80d280b15ddb442f290c9722d394f63a9036e3.zip
[feature/php-events] Fix doc and naming of core.viewtopic_cache_user_data
PHPBB3-9550
-rw-r--r--phpBB/viewtopic.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 1939d1f73b..cad3789fd4 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -1174,8 +1174,17 @@ while ($row = $db->sql_fetchrow($result))
'author_profile' => get_username_string('profile', $poster_id, $row['username'], $row['user_colour']),
);
- $vars = array('user_cache_data', 'row', 'poster_id');
- extract($phpbb_dispatcher->trigger_event('core.viewtopic_user_cache', compact($vars)));
+ /**
+ * Modify the users' data displayed with their posts
+ *
+ * @event core.viewtopic_cache_user_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_user_data', compact($vars)));
$user_cache[$poster_id] = $user_cache_data;