@@ -, +, @@ is no longer needed --- Koha/Template/Plugin/Koha.pm | 10 ---------- .../prog/en/includes/reports-menu.inc | 2 +- .../intranet-tmpl/prog/en/includes/tools-menu.inc | 4 ++-- .../prog/en/modules/reports/reports-home.tt | 2 +- .../prog/en/modules/tools/tools-home.tt | 4 ++-- t/Koha_Template_Plugin_Koha.t | 14 +------------- 6 files changed, 7 insertions(+), 29 deletions(-) --- a/Koha/Template/Plugin/Koha.pm +++ a/Koha/Template/Plugin/Koha.pm @@ -84,14 +84,4 @@ sub Version { }; } -=head3 ArePluginsEnabled - -Returns true if plugins are enabled, false otherwise. - -=cut - -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 @@ -28,7 +28,7 @@
  • Holds
  • - [% IF Koha.ArePluginsEnabled() %] + [% IF plugins_enabled %]
    Report plugins
    [% END %] -[% IF ( CAN_user_tools_edit_calendar || CAN_user_tools_manage_csv_profiles || CAN_user_tools_view_system_logs || CAN_user_tools_edit_additional_contents || CAN_user_tools_schedule_tasks || CAN_user_tools_edit_quotes || ( Koha.ArePluginsEnabled() && CAN_user_plugins_tool ) || CAN_user_tools_upload_general_files || CAN_user_tools_access_files ) %] +[% IF ( CAN_user_tools_edit_calendar || CAN_user_tools_manage_csv_profiles || CAN_user_tools_view_system_logs || CAN_user_tools_edit_additional_contents || CAN_user_tools_schedule_tasks || CAN_user_tools_edit_quotes || ( plugins_enabled && CAN_user_plugins_tool ) || CAN_user_tools_upload_general_files || CAN_user_tools_access_files ) %]
    Additional tools
    - [% IF Koha.ArePluginsEnabled() %] + [% IF plugins_enabled %]

    Report plugins