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 <gmc@esilibrary.com>
(cherry picked from commit 08fe85950a)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
eebd413c51
commit
4e57b0fbb5
|
|
@ -1069,7 +1069,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"));
|
||||
|
|
|
|||
|
|
@ -86,7 +86,8 @@ please choose against which one you would like to authenticate: </p>
|
|||
|
||||
<input type="submit" value="Log In" class="submit" />
|
||||
<div id="nologininstructions">
|
||||
[% IF NoLoginInstructions %] [% NoLoginInstructions %]
|
||||
[% IF Koha.Preference('NoLoginInstructions') %]
|
||||
[% Koha.Preference('NoLoginInstructions') %]
|
||||
[% ELSE %]
|
||||
<h5>Don't have a password yet?</h5>
|
||||
<p>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.</p>
|
||||
|
|
|
|||
Loading…
Reference in New Issue