diff options
| author | lr94 <lucarobbiano@gmail.com> | 2017-04-16 16:28:38 +0200 |
|---|---|---|
| committer | lr94 <lucarobbiano@gmail.com> | 2017-04-16 16:28:38 +0200 |
| commit | aa37e9b7fc60bd443c6abbcdc3adbf28ae010f32 (patch) | |
| tree | a32036d6da60bbb1b4fdb60694702f36408ba71b /phpBB/includes/functions_display.php | |
| parent | 9d35258532ad232868c38b275b4df32089086d37 (diff) | |
| download | forums-aa37e9b7fc60bd443c6abbcdc3adbf28ae010f32.tar forums-aa37e9b7fc60bd443c6abbcdc3adbf28ae010f32.tar.gz forums-aa37e9b7fc60bd443c6abbcdc3adbf28ae010f32.tar.bz2 forums-aa37e9b7fc60bd443c6abbcdc3adbf28ae010f32.tar.xz forums-aa37e9b7fc60bd443c6abbcdc3adbf28ae010f32.zip | |
[ticket/15176] Add setting for user activity display limit.
Up to phpBB 3.2 the maximum number of posts a user must have to have his
activity shown is 5000. This limit is hardcoded in functions_display.php.
It would be useful if board administrators could choose to disable the
limit or to set an higher value.
PHPBB3-15176
Diffstat (limited to 'phpBB/includes/functions_display.php')
| -rw-r--r-- | phpBB/includes/functions_display.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php index c8b5ec8b1a..32bee14eef 100644 --- a/phpBB/includes/functions_display.php +++ b/phpBB/includes/functions_display.php @@ -1165,12 +1165,13 @@ function display_reasons($reason_id = 0) */ function display_user_activity(&$userdata_ary) { - global $auth, $template, $db, $user; + global $auth, $template, $db, $user, $config; global $phpbb_root_path, $phpEx; global $phpbb_container, $phpbb_dispatcher; - // Do not display user activity for users having more than 5000 posts... - if ($userdata_ary['user_posts'] > 5000) + // Do not display user activity for users having too many posts... + $limit = $config['load_user_activity_limit']; + if ($userdata_ary['user_posts'] > $limit && $limit != 0) { return; } |
