@@ -, +, @@ --- Koha/Template/Plugin/Koha.pm | 4 ++++ .../prog/en/includes/reports-menu.inc | 4 +++- .../intranet-tmpl/prog/en/includes/tools-menu.inc | 4 ++-- .../prog/en/modules/plugins/plugins-disabled.tt | 2 +- .../prog/en/modules/reports/reports-home.tt | 2 +- .../prog/en/modules/tools/tools-home.tt | 4 ++-- t/Koha_Template_Plugin_Koha.t | 15 ++++++++++++++- 7 files changed, 27 insertions(+), 8 deletions(-) --- a/Koha/Template/Plugin/Koha.pm +++ a/Koha/Template/Plugin/Koha.pm @@ -58,4 +58,8 @@ sub Version { }; } +sub ArePluginsEnabled { + return C4::Context->config('enable_plugins'); +} + 1; --- a/koha-tmpl/intranet-tmpl/prog/en/includes/reports-menu.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/reports-menu.inc @@ -1,3 +1,5 @@ +[% USE Koha %] +