From 5a075c3dca431797fd21420e6bdeb25bbc08bee6 Mon Sep 17 00:00:00 2001 From: Igor Wiedler Date: Thu, 28 Oct 2010 21:48:58 +0200 Subject: [feature/system-cron] remove more includes, adjust path PHPBB3-9596 --- phpBB/cron.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'phpBB/cron.php') 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']) -- cgit v1.2.1