Lines 270-275
sub InstallPlugins {
Link Here
|
270 |
|
270 |
|
271 |
Koha::Cache::Memory::Lite->clear_from_cache(ENABLED_PLUGINS_CACHE_KEY); |
271 |
Koha::Cache::Memory::Lite->clear_from_cache(ENABLED_PLUGINS_CACHE_KEY); |
272 |
|
272 |
|
|
|
273 |
my $rs = Koha::Database->schema->resultset('PluginData'); |
274 |
for my $plugin (@plugins) { |
275 |
my $exists = $rs->search( |
276 |
{ |
277 |
plugin_key => '__INSTALLED_VIA__', |
278 |
plugin_class => $plugin->plugin_class |
279 |
} |
280 |
); |
281 |
unless ( $exists->count == 1 ) { |
282 |
$rs->create( |
283 |
{ |
284 |
plugin_key => '__INSTALLED_VIA__', |
285 |
plugin_class => $plugin->plugin_class, |
286 |
plugin_value => C4::Context->interface, |
287 |
} |
288 |
); |
289 |
|
290 |
} |
291 |
} |
292 |
|
273 |
return @plugins; |
293 |
return @plugins; |
274 |
} |
294 |
} |
275 |
|
295 |
|
276 |
- |
|
|