@@ -, +, @@ Observe there is a link to opac-topissues.pl next to Advanced search etc. Follow that link, observe that opac-topissues.pl is loading Observe the link is gone Manually open /koha/opac-topissues.pl and check that it is loading even though the feature is disabled Follow the link or manuall open opac-topissues.pl and check that it is working --- opac/opac-topissues.pl | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) --- a/opac/opac-topissues.pl +++ a/opac/opac-topissues.pl @@ -40,6 +40,13 @@ plugin that shows a stats on borrowers =cut my $input = new CGI; + +# if OpacTopissue is disabled, leave immediately +if ( ! C4::Context->preference('OpacTopissue') ) { + print $input->redirect("/cgi-bin/koha/errors/404.pl"); + exit; +} + my $branches = GetBranches(); my $itemtypes = GetItemTypes(); --