mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[feature/system-cron] Wrap cron tasks in cron manager.
PHPBB3-9596
This commit is contained in:
@@ -101,7 +101,8 @@ class cron_manager
|
|||||||
include_once($phpbb_root_path . "includes/cron/$mod/$filename.$phpEx");
|
include_once($phpbb_root_path . "includes/cron/$mod/$filename.$phpEx");
|
||||||
$class = "cron_task_${mod}_${filename}";
|
$class = "cron_task_${mod}_${filename}";
|
||||||
$object = new $class;
|
$object = new $class;
|
||||||
$this->tasks[] = $object;
|
$wrapper = new cron_task_wrapper($object);
|
||||||
|
$this->tasks[] = $wrapper;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user