aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2010-04-17 03:13:30 -0400
committerOleg Pudeyev <oleg@bsdpower.com>2011-02-12 22:05:49 -0500
commit0f9b3bcc27e7daf7d605a7a38310a8f62b9a76e8 (patch)
tree15cacd0d8bc8a28bbf1cc73504e7f7f61803a987 /phpBB/includes/functions.php
parent61e0285da86ffaf825cfcd486b5372b9566e51d7 (diff)
downloadforums-0f9b3bcc27e7daf7d605a7a38310a8f62b9a76e8.tar
forums-0f9b3bcc27e7daf7d605a7a38310a8f62b9a76e8.tar.gz
forums-0f9b3bcc27e7daf7d605a7a38310a8f62b9a76e8.tar.bz2
forums-0f9b3bcc27e7daf7d605a7a38310a8f62b9a76e8.tar.xz
forums-0f9b3bcc27e7daf7d605a7a38310a8f62b9a76e8.zip
[feature/system-cron] Refactored cron task naming, loading and running.
PHPBB3-9596
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index eb787bfc62..418e8dc51d 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -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" />');
}
}