fix show-version check on login/footer-template

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-05-20 14:50:51 +02:00
parent 0311ced7c3
commit fef416ce84
2 changed files with 2 additions and 1 deletions

View File

@@ -301,6 +301,7 @@ if (!$action && isset($_SESSION)) {
UI::twig()->addGlobal('action', $action);
UI::twig()->addGlobal('page', $page);
UI::twig()->addGlobal('area', AREA);
/**
* Initialize the mailingsystem

View File

@@ -3,7 +3,7 @@
<img src="{{ basehref|default("") }}templates/Froxlor/assets/img/logo_grey.png" alt="Froxlor"/>
{% if install_mode is not defined %}
{% if (get_setting('admin.show_version_login') == '1'
and module == 'Login') or (module != 'Login'
and area == 'login') or (area != 'login'
and get_setting('admin.show_version_footer') == '1') %}
{{ call_static('\\Froxlor\\Froxlor', 'getFullVersion') }}
{% endif %}