@@ -, +, @@
---
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(-)
--- a/Koha/Plugins.pm
+++ a/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");
}
--- a/Koha/Plugins/Base.pm
+++ a/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");
}
--- a/Koha/Plugins/Handler.pm
+++ a/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");
}
--- a/debian/templates/koha-conf-site.xml.in
+++ a/debian/templates/koha-conf-site.xml.in
@@ -258,6 +258,7 @@
authorities
1
__PLUGINS_DIR__
+ 0
/usr/share/koha/intranet/cgi-bin
/usr/share/koha/opac/cgi-bin/opac
/usr/share/koha/opac/htdocs/opac-tmpl
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref
+++ a/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.
--