fix show-version check on login/footer-template
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -301,6 +301,7 @@ if (!$action && isset($_SESSION)) {
|
|||||||
|
|
||||||
UI::twig()->addGlobal('action', $action);
|
UI::twig()->addGlobal('action', $action);
|
||||||
UI::twig()->addGlobal('page', $page);
|
UI::twig()->addGlobal('page', $page);
|
||||||
|
UI::twig()->addGlobal('area', AREA);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Initialize the mailingsystem
|
* Initialize the mailingsystem
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<img src="{{ basehref|default("") }}templates/Froxlor/assets/img/logo_grey.png" alt="Froxlor"/>
|
<img src="{{ basehref|default("") }}templates/Froxlor/assets/img/logo_grey.png" alt="Froxlor"/>
|
||||||
{% if install_mode is not defined %}
|
{% if install_mode is not defined %}
|
||||||
{% if (get_setting('admin.show_version_login') == '1'
|
{% 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') %}
|
and get_setting('admin.show_version_footer') == '1') %}
|
||||||
{{ call_static('\\Froxlor\\Froxlor', 'getFullVersion') }}
|
{{ call_static('\\Froxlor\\Froxlor', 'getFullVersion') }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user