From a10db1347dfbe5a444e669e363aab9b635d74069 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 5 Nov 2020 12:42:47 +0000 Subject: [PATCH] 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 Signed-off-by: Jonathan Druart --- admin/edi_accounts.pl | 1 - koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_accounts.tt | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/admin/edi_accounts.pl b/admin/edi_accounts.pl index 202c340efe..288fec519c 100755 --- a/admin/edi_accounts.pl +++ b/admin/edi_accounts.pl @@ -116,7 +116,6 @@ else { } $template->param( - plugins_enabled => C4::Context->config("enable_plugins"), code_qualifiers => [ { code => '14', diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_accounts.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_accounts.tt index 8f69e04767..980c2e7f85 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_accounts.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_accounts.tt @@ -78,7 +78,7 @@ [% END %] - [% IF plugins_enabled %] + [% IF plugins %]