aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/prune.php2
-rw-r--r--phpBB/viewforum.php1
2 files changed, 1 insertions, 2 deletions
diff --git a/phpBB/includes/prune.php b/phpBB/includes/prune.php
index ed94ef1232..0798ec2322 100644
--- a/phpBB/includes/prune.php
+++ b/phpBB/includes/prune.php
@@ -122,8 +122,6 @@ function prune($forum_id, $prune_date)
//
function auto_prune($forum_id = 0)
{
- require($phpbb_root_path . 'includes/functions_admin.'.$phpEx);
-
global $db, $lang;
$sql = "SELECT *
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php
index 632a7d6682..a3d2c98a14 100644
--- a/phpBB/viewforum.php
+++ b/phpBB/viewforum.php
@@ -174,6 +174,7 @@ if ( $is_auth['auth_mod'] && $board_config['prune_enable'] )
if ( $forum_row['prune_next'] < time() && $forum_row['prune_enable'] )
{
include($phpbb_root_path . 'includes/prune.'.$phpEx);
+ require($phpbb_root_path . 'includes/functions_admin.'.$phpEx);
auto_prune($forum_id);
}
}