1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 05:20:56 +02:00

[feature/system-cron] Refactored cron task naming, loading and running.

PHPBB3-9596
This commit is contained in:
Oleg Pudeyev
2010-04-17 03:13:30 -04:00
parent 61e0285da8
commit 0f9b3bcc27
17 changed files with 261 additions and 340 deletions

View File

@@ -4617,11 +4617,12 @@ function page_footer($run_cron = true)
if ($call_cron)
{
global $cron;
$cron_type = $cron->find_one_runnable_task();
$task = $cron->find_one_ready_task();
if ($cron_type)
if ($task)
{
$template->assign_var('RUN_CRON_TASK', $cron->generate_task_code($cron_type));
$url = $task->get_url();
$template->assign_var('RUN_CRON_TASK', '<img src="' . $url . '" width="1" height="1" alt="cron" />');
}
}