From e7c035b4ebd958d102907d6133ce1e6ef5448a0f Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 18 Jun 2013 13:01:21 +0200 Subject: [PATCH] Versionsnummer im Adminloginscreen immer richtig ausgeben --- SL/Controller/Admin.pm | 3 ++- templates/webpages/admin/adminlogin.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/SL/Controller/Admin.pm b/SL/Controller/Admin.pm index d633b98ca..6c62024d5 100644 --- a/SL/Controller/Admin.pm +++ b/SL/Controller/Admin.pm @@ -545,7 +545,8 @@ sub use_multiselect_js { sub login_form { my ($self, %params) = @_; - $self->render('admin/adminlogin', title => t8('kivitendo v#1 administration', $::form->read_version), %params); + my $version = $::form->read_version; + $self->render('admin/adminlogin', title => t8('kivitendo v#1 administration', $version), %params, version => $version); } sub edit_user_form { diff --git a/templates/webpages/admin/adminlogin.html b/templates/webpages/admin/adminlogin.html index 80a78e8b9..c84e60239 100644 --- a/templates/webpages/admin/adminlogin.html +++ b/templates/webpages/admin/adminlogin.html @@ -6,7 +6,7 @@ -

[% LxERP.t8('kivitendo v#1 administration', FORM.version) %]

+

[% LxERP.t8('kivitendo v#1 administration', version) %]

[% IF error %]

-- 2.20.1