Bugzilla – Attachment 101719 Details for
Bug 20415
Remove UseKohaPlugins system preference
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20415: Add POD
Bug-20415-Add-POD.patch (text/plain), 1.27 KB, created by
Kyle M Hall (khall)
on 2020-03-25 14:29:58 UTC
(
hide
)
Description:
Bug 20415: Add POD
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2020-03-25 14:29:58 UTC
Size:
1.27 KB
patch
obsolete
>From 9099a957eaf2fc826cabf957a9b5ca3b1dacb88f Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Wed, 25 Mar 2020 09:27:30 -0400 >Subject: [PATCH] Bug 20415: Add POD > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > Koha/Template/Plugin/Koha.pm | 18 +++++++++++++++++- > 1 file changed, 17 insertions(+), 1 deletion(-) > >diff --git a/Koha/Template/Plugin/Koha.pm b/Koha/Template/Plugin/Koha.pm >index 87b6f5f9ef..5ed58a95ad 100644 >--- a/Koha/Template/Plugin/Koha.pm >+++ b/Koha/Template/Plugin/Koha.pm >@@ -24,7 +24,11 @@ use base qw( Template::Plugin ); > use C4::Context; > use Koha; > >-=pod >+=head1 NAME >+ >+Koha::Template::Plugin::Koha - General Koha Template Toolkit plugin >+ >+=head1 SYNOPSIS > > This plugin contains various Koha replated Template Toolkit functions > to help streamline Koha and to move logic from the Perl code into the >@@ -40,6 +44,12 @@ is necessary. > > =cut > >+=head1 API >+ >+=head2 Class Methods >+ >+=cut >+ > sub Preference { > my ( $self, $pref ) = @_; > return C4::Context->preference( $pref ); >@@ -58,6 +68,12 @@ sub Version { > }; > } > >+=head3 ArePluginsEnabled >+ >+Returns true if plugins are enabled, false otherwise. >+ >+=cut >+ > sub ArePluginsEnabled { > return C4::Context->config('enable_plugins'); > } >-- >2.21.1 (Apple Git-122.3)
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 20415
:
101021
|
101022
|
101060
|
101061
|
101433
|
101434
|
101663
|
101664
|
101717
|
101718
| 101719 |
101928