diff --git a/lib/init.php b/lib/init.php index cf78dd9d..139b9ce6 100644 --- a/lib/init.php +++ b/lib/init.php @@ -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 diff --git a/templates/Froxlor/footer.html.twig b/templates/Froxlor/footer.html.twig index d186aecf..1312154e 100644 --- a/templates/Froxlor/footer.html.twig +++ b/templates/Froxlor/footer.html.twig @@ -3,7 +3,7 @@ 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 %}