Bug 26908: (follow-up) Alter template check

This alters the template check to use the presence of the plugins
arrayref rather than requiring a second call to check for
plugins_enabled.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Martin Renvoize 2020-11-05 12:42:47 +00:00 committed by Jonathan Druart
parent 0d438de018
commit a10db1347d
2 changed files with 1 additions and 2 deletions

View File

@ -116,7 +116,6 @@ else {
}
$template->param(
plugins_enabled => C4::Context->config("enable_plugins"),
code_qualifiers => [
{
code => '14',

View File

@ -78,7 +78,7 @@
[% END %]
</select>
</li>
[% IF plugins_enabled %]
[% IF plugins %]
<li>
<label for="plugin">Plugin: </label>
<select name="plugin" id="plugin">