[ticket/16977] Fix cron-job img tag layout and accessibility

PHPBB3-16977
This commit is contained in:
lionel-rowe 2022-04-01 22:54:33 +01:00
parent 4ed0201ffe
commit 8c982c7aa0
2 changed files with 3 additions and 3 deletions

View file

@ -364,7 +364,7 @@ class helper
if ($task) if ($task)
{ {
$url = $task->get_url(); $url = $task->get_url();
$this->template->assign_var('RUN_CRON_TASK', '<img src="' . $url . '" width="1" height="1" alt="cron" />'); $this->template->assign_var('RUN_CRON_TASK', '<img src="' . $url . '" width="1" height="1" alt="" style="position: fixed; top: -10000px" />');
} }
else else
{ {

View file

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