From 3479f950906dce340ab63b0d310ea8ba8fc02b97 Mon Sep 17 00:00:00 2001 From: lavigor Date: Sun, 7 Feb 2016 16:50:17 +0300 Subject: [ticket/14466] Add an event to cron.php PHPBB3-14466 --- phpBB/cron.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'phpBB/cron.php') diff --git a/phpBB/cron.php b/phpBB/cron.php index 3f022b1db8..7ba19fd63a 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\task 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); -- cgit v1.2.1 From ebe5eb8342c7bd30a7ca690ad5befbbab8123a4f Mon Sep 17 00:00:00 2001 From: lavigor Date: Fri, 25 Mar 2016 23:16:49 +0300 Subject: [ticket/14466] Fix class name in PHPDoc comment. PHPBB3-14466 --- phpBB/cron.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpBB/cron.php') diff --git a/phpBB/cron.php b/phpBB/cron.php index 7ba19fd63a..aed68f6aeb 100644 --- a/phpBB/cron.php +++ b/phpBB/cron.php @@ -59,7 +59,7 @@ if ($cron_lock->acquire()) * This event enables you to catch the task before it runs * * @event core.cron_run_before - * @var \phpbb\cron\task\task task Current Cron task + * @var \phpbb\cron\task\wrapper task Current Cron task * @since 3.1.8-RC1 */ $vars = array( -- cgit v1.2.1