aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
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" />');
}
}