From f554447a9b5a040cada4153aa3777d369e40f86a 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 --- .../opac-tmpl/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 ac6765d..fbb63a2 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 684b129..fbed158 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.1.0