From 08fe85950ae38a4faa5f0adce5e7d308a766117a Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Sat, 19 Apr 2014 16:53:26 +0000 Subject: [PATCH] Bug 10951: (follow-up) use Koha.Preference() template function This patch uses the TT helper function Koha.Preference() to retrieve the value of NoLoginInstructions rather than passing it to all templates as a template variable. Signed-off-by: Galen Charlton --- C4/Auth.pm | 1 - koha-tmpl/opac-tmpl/prog/en/modules/opac-auth.tt | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 24da09e9bc..44edf67ce2 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -1068,7 +1068,6 @@ sub checkauth { PatronSelfRegistrationDefaultCategory => C4::Context->preference("PatronSelfRegistrationDefaultCategory"), persona => C4::Context->preference("Persona"), opac_css_override => $ENV{'OPAC_CSS_OVERRIDE'}, - NoLoginInstructions => C4::Context->preference("NoLoginInstructions"), ); $template->param( OpacPublic => C4::Context->preference("OpacPublic")); diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-auth.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-auth.tt index 98cc462f9a..c06e234772 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-auth.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-auth.tt @@ -86,7 +86,8 @@ please choose against which one you would like to authenticate:

-[% IF NoLoginInstructions %] [% NoLoginInstructions %] +[% IF Koha.Preference('NoLoginInstructions') %] + [% Koha.Preference('NoLoginInstructions') %] [% ELSE %]
Don't have a password yet?

If you don't have a password yet, stop by the circulation desk the next time you're in the library. We'll happily set one up for you.

-- 2.39.5