Bugzilla – Attachment 14512 Details for
Bug 7804
Add Koha Plugin System
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7804 - Add Koha Plugin System - Followup 1 - Add config level switch from plugin system
Bug-7804---Add-Koha-Plugin-System---Followup-1---A.patch (text/plain), 2.94 KB, created by
Kyle M Hall (khall)
on 2013-01-09 20:38:17 UTC
(
hide
)
Description:
Bug 7804 - Add Koha Plugin System - Followup 1 - Add config level switch from plugin system
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2013-01-09 20:38:17 UTC
Size:
2.94 KB
patch
obsolete
>From 71e23f0c66d356af8a2d3e0c8806aacf7a1e3d03 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Wed, 9 Jan 2013 15:37:33 -0500 >Subject: [PATCH] Bug 7804 - Add Koha Plugin System - Followup 1 - Add config level switch from plugin system > >--- > Koha/Plugins.pm | 2 ++ > Koha/Plugins/Base.pm | 2 ++ > Koha/Plugins/Handler.pm | 2 ++ > debian/templates/koha-conf-site.xml.in | 1 + > .../admin/preferences/enhanced_content.pref | 2 +- > 5 files changed, 8 insertions(+), 1 deletions(-) > >diff --git a/Koha/Plugins.pm b/Koha/Plugins.pm >index 702d551..f0385c1 100644 >--- a/Koha/Plugins.pm >+++ b/Koha/Plugins.pm >@@ -26,6 +26,8 @@ use C4::Context; > use C4::Output; > > BEGIN { >+ die('Plugins not enabled in config') unless ( C4::Context->config("enable_plugins") ); >+ > push @INC, C4::Context->config("pluginsdir"); > } > >diff --git a/Koha/Plugins/Base.pm b/Koha/Plugins/Base.pm >index c638ae9..5bbe794 100644 >--- a/Koha/Plugins/Base.pm >+++ b/Koha/Plugins/Base.pm >@@ -28,6 +28,8 @@ use Template; > use C4::Context; > > BEGIN { >+ die('Plugins not enabled in config') unless ( C4::Context->config("enable_plugins") ); >+ > push @INC, C4::Context->config("pluginsdir"); > } > >diff --git a/Koha/Plugins/Handler.pm b/Koha/Plugins/Handler.pm >index 5e0f690..f5cdafd 100644 >--- a/Koha/Plugins/Handler.pm >+++ b/Koha/Plugins/Handler.pm >@@ -26,6 +26,8 @@ use Module::Load::Conditional qw(can_load); > use C4::Context; > > BEGIN { >+ die('Plugins not enabled in config') unless ( C4::Context->config("enable_plugins") ); >+ > push @INC, C4::Context->config("pluginsdir"); > } > >diff --git a/debian/templates/koha-conf-site.xml.in b/debian/templates/koha-conf-site.xml.in >index 167b58f..f433487 100644 >--- a/debian/templates/koha-conf-site.xml.in >+++ b/debian/templates/koha-conf-site.xml.in >@@ -258,6 +258,7 @@ > <authorityserver>authorities</authorityserver> > <authorityservershadow>1</authorityservershadow> > <pluginsdir>__PLUGINS_DIR__</pluginsdir> >+ <enable_plugins>0</enable_plugins> > <intranetdir>/usr/share/koha/intranet/cgi-bin</intranetdir> > <opacdir>/usr/share/koha/opac/cgi-bin/opac</opacdir> > <opachtdocs>/usr/share/koha/opac/htdocs/opac-tmpl</opachtdocs> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref >index ba61d51..ca26073 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref >@@ -306,4 +306,4 @@ Enhanced Content: > choices: > yes: Enable > no: "Don't enable" >- - the ability to use Koha Plugins. >+ - the ability to use Koha Plugins. Note, the plugin system must also be enabled in the Koha configuration file to be fully enabled. >-- >1.7.2.5
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 7804
:
8525
|
8528
|
8545
|
8546
|
8591
|
8595
|
8596
|
8597
|
8607
|
8608
|
8609
|
9565
|
9636
|
9637
|
9644
|
9755
|
11606
|
14506
|
14508
|
14509
|
14510
|
14511
|
14512
|
14513
|
14514
|
14530
|
14531
|
14538
|
14539
|
14540
|
14541
|
14542
|
14543
|
14545
|
14562
|
14563
|
14632
|
14633
|
14731
|
15166
|
15167
|
15168
|
15531
|
15532
|
15533
|
15570
|
15571
|
15572
|
15653
|
15654
|
15655
|
15656
|
16220
|
16221
|
16222
|
16223
|
16297
|
16298
|
16299