Lines 118-126
sub get_enabled_plugins {
Link Here
|
118 |
unless ($enabled_plugins) { |
118 |
unless ($enabled_plugins) { |
119 |
my $verbose = $params->{verbose} // $class->_verbose; |
119 |
my $verbose = $params->{verbose} // $class->_verbose; |
120 |
$enabled_plugins = []; |
120 |
$enabled_plugins = []; |
121 |
my $rs = Koha::Database->schema->resultset('PluginData'); |
121 |
my $rs = Koha::Plugins::Datas->search({ plugin_key => '__ENABLED__', plugin_value => 1 }); |
122 |
$rs = $rs->search({ plugin_key => '__ENABLED__', plugin_value => 1 }); |
122 |
my @plugin_classes = $rs->get_column('plugin_class'); |
123 |
my @plugin_classes = $rs->get_column('plugin_class')->all(); |
|
|
124 |
foreach my $plugin_class (@plugin_classes) { |
123 |
foreach my $plugin_class (@plugin_classes) { |
125 |
next unless can_load( modules => { $plugin_class => undef }, verbose => $verbose, nocache => 1 ); |
124 |
next unless can_load( modules => { $plugin_class => undef }, verbose => $verbose, nocache => 1 ); |
126 |
|
125 |
|