Bugzilla – Attachment 41378 Details for
Bug 13485
Add a page to display links to restricted sites
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13485: Use the Koha template plugin to access syspref values
Bug-13485-Use-the-Koha-template-plugin-to-access-s.patch (text/plain), 2.62 KB, created by
Jonathan Druart
on 2015-08-05 11:54:26 UTC
(
hide
)
Description:
Bug 13485: Use the Koha template plugin to access syspref values
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-08-05 11:54:26 UTC
Size:
2.62 KB
patch
obsolete
>From f554447a9b5a040cada4153aa3777d369e40f86a Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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 <jonathan.druart@bugs.koha-community.org> >--- > .../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' %] > <title> >@@ -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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 13485
:
34597
|
34598
|
34604
|
34908
|
34909
|
34910
|
40820
|
40821
|
40822
|
41377
| 41378