Bug 20181: (QA follow-up) Remove double check

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Kyle M Hall 2018-03-29 07:11:40 -04:00 committed by Jonathan Druart
parent f50a6ece83
commit 14c702bee5
1 changed files with 12 additions and 6 deletions

View File

@ -48,10 +48,13 @@ to output to the head section of opac pages.
sub get_plugins_opac_head {
return q{}
unless C4::Context->preference('UseKohaPlugins')
&& C4::Context->config("enable_plugins");
unless C4::Context->preference('UseKohaPlugins');
my @plugins = Koha::Plugins->new()->GetPlugins(
my $p = Koha::Plugins->new();
return q{} unless $p;
my @plugins = $p->GetPlugins(
{
method => 'opac_head',
}
@ -73,10 +76,13 @@ to output to the javascript section of at the bottom of opac pages.
sub get_plugins_opac_js {
return q{}
unless C4::Context->preference('UseKohaPlugins')
&& C4::Context->config("enable_plugins");
unless C4::Context->preference('UseKohaPlugins');
my @plugins = Koha::Plugins->new()->GetPlugins(
my $p = Koha::Plugins->new();
return q{} unless $p;
my @plugins = $p->GetPlugins(
{
method => 'opac_js',
}