Bug 7804 - Add Koha Plugin System - QA Followup 2
[srvgit] / Koha / Plugins.pm
index bc4a3bb..1360afa 100644 (file)
@@ -38,7 +38,7 @@ Koha::Plugins - Module for loading and managing plugins.
 sub new {
     my ( $class, $args ) = @_;
 
-    die('Plugins not enabled in config') unless ( C4::Context->config("enable_plugins") || $args->{'enable_plugins'} );
+    return unless ( C4::Context->config("enable_plugins") || $args->{'enable_plugins'} );
 
     $args->{'pluginsdir'} = C4::Context->config("pluginsdir");