diff options
author | Marc Alexander <admin@m-a-styles.de> | 2016-05-28 09:59:50 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2016-05-28 09:59:50 +0200 |
commit | 50227dbc75482e8ae2fbf5fb8f5ee9f6c19de273 (patch) | |
tree | dfc984c975af54c79ad4878fd6a7f71afb640f1f /phpBB/cron.php | |
parent | 80db259ab9010bbb0985c0dfaa4b2bac6dc8ab75 (diff) | |
parent | 0a512b2695342095ecb9745cf1c445c45f3326be (diff) | |
download | forums-50227dbc75482e8ae2fbf5fb8f5ee9f6c19de273.tar forums-50227dbc75482e8ae2fbf5fb8f5ee9f6c19de273.tar.gz forums-50227dbc75482e8ae2fbf5fb8f5ee9f6c19de273.tar.bz2 forums-50227dbc75482e8ae2fbf5fb8f5ee9f6c19de273.tar.xz forums-50227dbc75482e8ae2fbf5fb8f5ee9f6c19de273.zip |
Merge branch '3.1.x' into 3.2.x
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 e134dbbe4c..2f519947aa 100644 --- a/phpBB/cron.php +++ b/phpBB/cron.php @@ -57,6 +57,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); |