aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_admin.php
diff options
context:
space:
mode:
authorMax Krivanek <thekigen@gmail.com>2016-06-28 20:47:46 -0500
committerMax Krivanek <thekigen@gmail.com>2016-06-28 20:47:46 -0500
commit65a4f0d631c9661341bb0da4ff04c46113ad8048 (patch)
tree8ae62c42d2ef30f8214e8656f26432d02bd5bc1a /phpBB/includes/functions_admin.php
parent91702618852de42daebd0150f9bb2979e1aa6fa9 (diff)
downloadforums-65a4f0d631c9661341bb0da4ff04c46113ad8048.tar
forums-65a4f0d631c9661341bb0da4ff04c46113ad8048.tar.gz
forums-65a4f0d631c9661341bb0da4ff04c46113ad8048.tar.bz2
forums-65a4f0d631c9661341bb0da4ff04c46113ad8048.tar.xz
forums-65a4f0d631c9661341bb0da4ff04c46113ad8048.zip
[ticket/14616] Added prune_limit to event core.prune_sql
PHPBB3-14616
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r--phpBB/includes/functions_admin.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php
index 70fff2da59..5e40c86c65 100644
--- a/phpBB/includes/functions_admin.php
+++ b/phpBB/includes/functions_admin.php
@@ -2588,9 +2588,19 @@ function prune($forum_id, $prune_mode, $prune_date, $prune_flags = 0, $auto_sync
* @var int prune_flags The prune flags
* @var bool auto_sync Whether or not to perform auto sync
* @var string sql_and SQL text appended to where clause
+ * @var int prune_limit The prune limit
* @since 3.1.3-RC1
+ * @changed 3.1.10-RC1 Added prune_limit
*/
- $vars = array('forum_id', 'prune_mode', 'prune_date', 'prune_flags', 'auto_sync', 'sql_and');
+ $vars = array(
+ 'forum_id',
+ 'prune_mode',
+ 'prune_date',
+ 'prune_flags',
+ 'auto_sync',
+ 'sql_and',
+ 'prune_limit'
+ );
extract($phpbb_dispatcher->trigger_event('core.prune_sql', compact($vars)));
$sql = 'SELECT topic_id