Skip to content

Commit

Permalink
Fix wrong call to hooks in WellWell::Menu.
Browse files Browse the repository at this point in the history
  • Loading branch information
racke committed Sep 16, 2010
1 parent 1dc727b commit c156704
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/WellWell/Menu.pm
Expand Up @@ -57,7 +57,10 @@ sub display {
}

if ($opt->{hooks}) {
my @hook_entries = Vend::Tags->call_hooks('menu', 'collect', $name, $opt);
my @hook_entries;

$opt->{menu_name} = $name;
@hook_entries = Vend::Tags->call_hooks('menu', 'collect', $opt);

for (@hook_entries) {
next unless ref($_) eq 'HASH';
Expand Down

0 comments on commit c156704

Please sign in to comment.