@@ -, +, @@ administration start page This relied on the variable plugins_enabled that wasn't available in all the different templates. I therefore moved it to Auth.pm and cleaned up the code for the admin start page. * Sequence should be the same * All entries should appear on both pages * Naming should be the same --- C4/Auth.pm | 3 ++- admin/admin-home.pl | 2 -- .../prog/en/includes/admin-menu.inc | 25 +++++++++---------- 3 files changed, 14 insertions(+), 16 deletions(-) --- a/C4/Auth.pm +++ a/C4/Auth.pm @@ -523,7 +523,7 @@ sub get_template_and_user { $template->param( AmazonCoverImages => C4::Context->preference("AmazonCoverImages"), AutoLocation => C4::Context->preference("AutoLocation"), - PatronAutoComplete => C4::Context->preference("PatronAutoComplete"), + PatronAutoComplete => C4::Context->preference("PatronAutoComplete"), FRBRizeEditions => C4::Context->preference("FRBRizeEditions"), IndependentBranches => C4::Context->preference("IndependentBranches"), IntranetNav => C4::Context->preference("IntranetNav"), @@ -548,6 +548,7 @@ sub get_template_and_user { UseCourseReserves => C4::Context->preference("UseCourseReserves"), useDischarge => C4::Context->preference('useDischarge'), pending_checkout_notes => Koha::Checkouts->search({ noteseen => 0 }), + plugins_enabled => C4::Context->config("enable_plugins"), ); } else { --- a/admin/admin-home.pl +++ a/admin/admin-home.pl @@ -24,7 +24,6 @@ use Koha::Plugins; my $query = CGI->new; -my $plugins_enabled = C4::Context->config("enable_plugins"); my $mana_url = C4::Context->config('mana_config'); my ( $template, $loggedinuser, $cookie ) = get_template_and_user( @@ -36,7 +35,6 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( } ); -$template->param( plugins_enabled => $plugins_enabled, ); $template->param( mana_url => $mana_url, ); output_html_with_http_headers $query, $cookie, $template->output; --- a/koha-tmpl/intranet-tmpl/prog/en/includes/admin-menu.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/admin-menu.inc @@ -71,6 +71,13 @@ [% END %] + [% IF CAN_user_plugins && plugins_enabled %] +