1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-18 22:41:28 +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

@@ -0,0 +1,7 @@
{#
Runs the cron task by triggering server request to the URL on load. `img` is
preferred over JS to ensure maximum compatibility. We use `class="sr-only"`
to hide visually and `aria-hidden="true"` to hide from screen-readers; using
`hidden` or `display: none` would prevent the task from running.
#}
<img class="sr-only" aria-hidden="true" src="{{ CRON_TASK_URL|e('html_attr') }}" width="1" height="1" alt="">