Bug 20968: (follow-up) Respond to feedback
[koha.git] / catalogue / detail.pl
index 0e8405e..46687ec 100755 (executable)
@@ -66,11 +66,10 @@ my ( $template, $borrowernumber, $cookie, $flags ) = get_template_and_user(
 # Determine if we should be offering any enhancement plugin buttons
 if ( C4::Context->preference('UseKohaPlugins') &&
         C4::Context->config('enable_plugins') ) {
+       # Only pass plugins that can offer a toolbar button
        my @plugins = Koha::Plugins->new()->GetPlugins({
-               method => 'intranet_catalog_biblio_enhancements'
+               method => 'get_intranet_catalog_toolbar_button'
        });
-       # Only pass plugins that can offer a toolbar button
-       @plugins = grep { $_->get_toolbar_button } @plugins;
        $template->param(
                plugins => \@plugins
        );