diff options
author | Marc Alexander <admin@m-a-styles.de> | 2014-08-01 23:27:55 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2014-08-01 23:27:55 +0200 |
commit | 5b2e9629344e973655c9cb009f6714214822a360 (patch) | |
tree | 597afa0f4e1fc303f79c4f90ac9a0eaa38373f77 | |
parent | 50d10c4efdf88c7e63f8623f3ff0c589d2017876 (diff) | |
parent | 25826fa5877df7473b6e535e1d16009a1e119d96 (diff) | |
download | forums-5b2e9629344e973655c9cb009f6714214822a360.tar forums-5b2e9629344e973655c9cb009f6714214822a360.tar.gz forums-5b2e9629344e973655c9cb009f6714214822a360.tar.bz2 forums-5b2e9629344e973655c9cb009f6714214822a360.tar.xz forums-5b2e9629344e973655c9cb009f6714214822a360.zip |
Merge remote-tracking branch 'brunoais/ticket/12800' into develop-ascraeus
-rw-r--r-- | phpBB/includes/functions_display.php | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php index 68b1356297..bfe9c0b055 100644 --- a/phpBB/includes/functions_display.php +++ b/phpBB/includes/functions_display.php @@ -1063,7 +1063,8 @@ function display_reasons($reason_id = 0) function display_user_activity(&$userdata) { global $auth, $template, $db, $user; - global $phpbb_root_path, $phpEx, $phpbb_container; + global $phpbb_root_path, $phpEx; + global $phpbb_container, $phpbb_dispatcher; // Do not display user activity for users having more than 5000 posts... if ($userdata['user_posts'] > 5000) @@ -1134,6 +1135,18 @@ function display_user_activity(&$userdata) } } + /** + * Alter list of forums and topics to display as active + * + * @event core.display_user_activity_modify_actives + * @var array userdata User's data + * @var array active_f_row List of active forums + * @var array active_t_row List of active posts + * @since 3.1.0-RC3 + */ + $vars = array('userdata', 'active_f_row', 'active_t_row'); + extract($phpbb_dispatcher->trigger_event('core.display_user_activity_modify_actives', compact($vars))); + $userdata['active_t_row'] = $active_t_row; $userdata['active_f_row'] = $active_f_row; |