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/phpbb | |
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/phpbb')
-rw-r--r-- | phpBB/phpbb/db/migration/data/v32x/load_user_activity_limit.php | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/migration/data/v32x/load_user_activity_limit.php b/phpBB/phpbb/db/migration/data/v32x/load_user_activity_limit.php new file mode 100644 index 0000000000..71bb6c00bf --- /dev/null +++ b/phpBB/phpbb/db/migration/data/v32x/load_user_activity_limit.php @@ -0,0 +1,36 @@ +<?php +/** +* +* This file is part of the phpBB Forum Software package. +* +* @copyright (c) phpBB Limited <https://www.phpbb.com> +* @license GNU General Public License, version 2 (GPL-2.0) +* +* For full copyright and license information, please see +* the docs/CREDITS.txt file. +* +*/ + +namespace phpbb\db\migration\data\v32x; + +class load_user_activity_limit extends \phpbb\db\migration\migration +{ + static public function depends_on() + { + return array( + '\phpbb\db\migration\data\v320\v320', + ); + } + + public function effectively_installed() + { + return isset($this->config['load_user_activity_limit']); + } + + public function update_data() + { + return array( + array('config.add', array('load_user_activity_limit', '5000')), + ); + } +} |