From cb1ac9f36a207a51f8292d96fb4ed52dfe4442b9 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 5 Aug 2015 12:52:12 +0100 Subject: [PATCH] Bug 13485: Use the Koha template plugin to access syspref values And remove the useless use of the KohaDates plugin Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi --- .../bootstrap/en/modules/opac-restrictedpage.tt | 11 +++++------ opac/opac-restrictedpage.pl | 5 ----- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-restrictedpage.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-restrictedpage.tt index ac6765d557..fbb63a29ca 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-restrictedpage.tt +++ b/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 --> diff --git a/opac/opac-restrictedpage.pl b/opac/opac-restrictedpage.pl index 684b129b48..fbed1582d1 100755 --- a/opac/opac-restrictedpage.pl +++ b/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; -- 2.39.5