@@ -, +, @@ values --- .../opac-tmpl/bootstrap/en/modules/opac-restrictedpage.tt | 11 +++++------ opac/opac-restrictedpage.pl | 5 ----- 2 files changed, 5 insertions(+), 11 deletions(-) --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-restrictedpage.tt +++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-restrictedpage.tt @@ -1,5 +1,4 @@ [% USE Koha %] -[% USE KohaDates %] [% INCLUDE 'doc-head-open.inc' %] @@ -22,8 +21,8 @@ <div class="main"> <ul class="breadcrumb"> <li><a href="/cgi-bin/koha/opac-main.pl">Home</a></li> - [% IF ( RestrictedPageTitle ) %] - <li> <span class="divider">›</span> [% RestrictedPageTitle %]</li> + [% IF Koha.Preference('RestrictedPageTitle') %] + <li> <span class="divider">›</span> [% Koha.Preference('RestrictedPageTitle') %]</li> [% END %] </ul> @@ -36,10 +35,10 @@ </div> <div class="span10"> <div id="restrictedcontent" class="maincontent"> - [% IF ( RestrictedPageTitle ) %] - <h1>[% RestrictedPageTitle %]</h1> + [% IF Koha.Preference('RestrictedPageTitle') %] + <h1>[% Koha.Preference('RestrictedPageTitle') %]</h1> [% END %] - [% RestrictedPageContent %] + [% Koha.Preference('RestrictedPageContent') %] </div> </div> <!-- / .span10 --> </div> <!-- / .row-fluid --> --- a/opac/opac-restrictedpage.pl +++ a/opac/opac-restrictedpage.pl @@ -45,9 +45,4 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user( } ); -$template->param( - RestrictedPageContent => C4::Context->preference('RestrictedPageContent'), - RestrictedPageTitle => C4::Context->preference('RestrictedPageTitle') - ); - output_html_with_http_headers $query, $cookie, $template->output; --