diff options
Diffstat (limited to 'phpBB/cron.php')
| -rw-r--r-- | phpBB/cron.php | 12 | 
1 files changed, 12 insertions, 0 deletions
| diff --git a/phpBB/cron.php b/phpBB/cron.php index 3f022b1db8..aed68f6aeb 100644 --- a/phpBB/cron.php +++ b/phpBB/cron.php @@ -55,6 +55,18 @@ if ($cron_lock->acquire())  	$task = $cron->find_task($cron_type);  	if ($task)  	{ +		/** +		 * This event enables you to catch the task before it runs +		 * +		 * @event core.cron_run_before +		 * @var	\phpbb\cron\task\wrapper	task	Current Cron task +		 * @since 3.1.8-RC1 +		 */ +		$vars = array( +			'task', +		); +		extract($phpbb_dispatcher->trigger_event('core.cron_run_before', compact($vars))); +  		if ($task->is_parametrized())  		{  			$task->parse_parameters($request); | 
