View | Details | Raw Unified | Return to bug 39522
Collapse All | Expand All

(-)a/Koha/FrameworkPlugin.pm (-3 / +6 lines)
Lines 213-220 sub _error { Link Here
213
sub _load {
213
sub _load {
214
    my ($self) = @_;
214
    my ($self) = @_;
215
215
216
    # Try to find the class that can handle this plugin
216
    # Try to find the class that can handle this plugin, but only if plugins are enabled
217
    my @plugins = Koha::Plugins->new()->get_valuebuilders_installed();
217
    my @plugins;
218
    if ( C4::Context->config("enable_plugins") ) {
219
        my $plugins_obj = Koha::Plugins->new();
220
        @plugins = $plugins_obj->get_valuebuilders_installed() if $plugins_obj;
221
    }
218
222
219
    foreach my $vb (@plugins) {
223
    foreach my $vb (@plugins) {
220
        my $plugin = $vb->{plugin};
224
        my $plugin = $vb->{plugin};
221
- 

Return to bug 39522