@@ -, +, @@
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 @@
- Home
- [% IF ( RestrictedPageTitle ) %]
- - › [% RestrictedPageTitle %]
+ [% IF Koha.Preference('RestrictedPageTitle') %]
+ - › [% Koha.Preference('RestrictedPageTitle') %]
[% END %]
@@ -36,10 +35,10 @@
- [% IF ( RestrictedPageTitle ) %]
-
[% RestrictedPageTitle %]
+ [% IF Koha.Preference('RestrictedPageTitle') %]
+ [% Koha.Preference('RestrictedPageTitle') %]
[% END %]
- [% RestrictedPageContent %]
+ [% Koha.Preference('RestrictedPageContent') %]
--- 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;
--