From 1fdfa98674638f35913fa422ec092efcbfb2cd57 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Tue, 2 Apr 2002 15:10:44 +0000 Subject: [PATCH] No comment git-svn-id: file:///svn/phpbb/trunk@2464 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/prune.php | 2 -- phpBB/viewforum.php | 1 + 2 files changed, 1 insertion(+), 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); } }