Bugzilla – Attachment 73417 Details for
Bug 20181
Allow plugins to add CSS and Javascript to OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20181 [QA Followup]: Remove double check
Bug-20181-QA-Followup-Remove-double-check.patch (text/plain), 1.52 KB, created by
Kyle M Hall (khall)
on 2018-03-29 11:11:53 UTC
(
hide
)
Description:
Bug 20181 [QA Followup]: Remove double check
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2018-03-29 11:11:53 UTC
Size:
1.52 KB
patch
obsolete
>From 67dc114d51d7b9b8db4ad5b9bf557b5dcc8a9c25 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatetsolutions.com> >Date: Thu, 29 Mar 2018 07:11:40 -0400 >Subject: [PATCH] Bug 20181 [QA Followup]: Remove double check > >--- > Koha/Template/Plugin/KohaPlugins.pm | 18 ++++++++++++------ > 1 file changed, 12 insertions(+), 6 deletions(-) > >diff --git a/Koha/Template/Plugin/KohaPlugins.pm b/Koha/Template/Plugin/KohaPlugins.pm >index a6822ca691..0148c7f301 100644 >--- a/Koha/Template/Plugin/KohaPlugins.pm >+++ b/Koha/Template/Plugin/KohaPlugins.pm >@@ -48,10 +48,13 @@ to output to the head section of opac pages. > > sub get_plugins_opac_head { > return q{} >- unless C4::Context->preference('UseKohaPlugins') >- && C4::Context->config("enable_plugins"); >+ unless C4::Context->preference('UseKohaPlugins'); > >- my @plugins = Koha::Plugins->new()->GetPlugins( >+ my $p = Koha::Plugins->new(); >+ >+ return q{} unless $p; >+ >+ my @plugins = $p->GetPlugins( > { > method => 'opac_head', > } >@@ -73,10 +76,13 @@ to output to the javascript section of at the bottom of opac pages. > > sub get_plugins_opac_js { > return q{} >- unless C4::Context->preference('UseKohaPlugins') >- && C4::Context->config("enable_plugins"); >+ unless C4::Context->preference('UseKohaPlugins'); >+ >+ my $p = Koha::Plugins->new(); >+ >+ return q{} unless $p; > >- my @plugins = Koha::Plugins->new()->GetPlugins( >+ my @plugins = $p->GetPlugins( > { > method => 'opac_js', > } >-- >2.14.3 (Apple Git-98)
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 20181
:
71481
|
71483
|
71563
|
71565
|
71566
|
71567
|
71568
|
71569
|
73264
|
73265
|
73266
|
73267
| 73417