Skip to content

Commit 50227db

Browse files
committed
Merge branch '3.1.x' into 3.2.x
2 parents 80db259 + 0a512b2 commit 50227db

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

phpBB/cron.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,18 @@ function output_image()
5757
$task = $cron->find_task($cron_type);
5858
if ($task)
5959
{
60+
/**
61+
* This event enables you to catch the task before it runs
62+
*
63+
* @event core.cron_run_before
64+
* @var \phpbb\cron\task\wrapper task Current Cron task
65+
* @since 3.1.8-RC1
66+
*/
67+
$vars = array(
68+
'task',
69+
);
70+
extract($phpbb_dispatcher->trigger_event('core.cron_run_before', compact($vars)));
71+
6072
if ($task->is_parametrized())
6173
{
6274
$task->parse_parameters($request);

0 commit comments

Comments
 (0)