aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/cron.php
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2010-10-28 21:48:58 +0200
committerOleg Pudeyev <oleg@bsdpower.com>2011-02-12 22:05:51 -0500
commit5a075c3dca431797fd21420e6bdeb25bbc08bee6 (patch)
tree36fbfb439313d0e31f13dd4fcf5a6c2889d35207 /phpBB/cron.php
parentc9bd1b392d098dce1c406f7da7654d5c1b4833a7 (diff)
downloadforums-5a075c3dca431797fd21420e6bdeb25bbc08bee6.tar
forums-5a075c3dca431797fd21420e6bdeb25bbc08bee6.tar.gz
forums-5a075c3dca431797fd21420e6bdeb25bbc08bee6.tar.bz2
forums-5a075c3dca431797fd21420e6bdeb25bbc08bee6.tar.xz
forums-5a075c3dca431797fd21420e6bdeb25bbc08bee6.zip
[feature/system-cron] remove more includes, adjust path
PHPBB3-9596
Diffstat (limited to 'phpBB/cron.php')
-rw-r--r--phpBB/cron.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/phpBB/cron.php b/phpBB/cron.php
index 7c9ab23bdb..cad83109dc 100644
--- a/phpBB/cron.php
+++ b/phpBB/cron.php
@@ -15,7 +15,6 @@ define('IN_CRON', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
-include($phpbb_root_path . 'includes/cron/cron_lock.' . $phpEx);
// Do not update users last page entry
$user->session_begin(false);
@@ -64,8 +63,7 @@ if ($config['use_system_cron'])
{
$use_shutdown_function = false;
- include($phpbb_root_path . 'includes/cron/cron_manager.' . $phpEx);
- $cron = new cron_manager;
+ $cron = new cron_manager();
}
else
{
@@ -75,7 +73,7 @@ else
output_image();
}
-$cron_lock = new cron_lock;
+$cron_lock = new cron_lock();
if ($cron_lock->lock())
{
if ($config['use_system_cron'])