1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-09-01 20:33:16 +02:00

[ticket/16977] Move HTML rendering logic to template

PHPBB3-16977
This commit is contained in:
lionel-rowe
2022-04-02 18:10:53 +01:00
parent 8c982c7aa0
commit 87c1e631ef
7 changed files with 49 additions and 10 deletions

View File

@@ -244,8 +244,8 @@ if (!$config['use_system_cron'])
if ($task->is_ready())
{
$url = $task->get_url();
$template->assign_var('RUN_CRON_TASK', '<img src="' . $url . '" width="1" height="1" alt="" style="position: fixed; top: -10000px" />');
$cron_task_tag = $task->get_html_tag();
$template->assign_var('RUN_CRON_TASK', $cron_task_tag);
}
else
{
@@ -255,8 +255,8 @@ if (!$config['use_system_cron'])
if ($task->is_ready())
{
$url = $task->get_url();
$template->assign_var('RUN_CRON_TASK', '<img src="' . $url . '" width="1" height="1" alt="" style="position: fixed; top: -10000px" />');
$cron_task_tag = $task->get_html_tag();
$template->assign_var('RUN_CRON_TASK', $cron_task_tag);
}
}
}