[wellwell-devel] [wellwell] Fix wrong call to hooks in WellWell::Menu.
Stefan Hornburg
wellwell-devel at rt.icdevgroup.org
Thu Sep 16 21:19:17 UTC 2010
commit c15670432d3e2fba55935b558a7168fdfdd6750a
Author: Stefan Hornburg (Racke) <racke at linuxia.de>
Date: Thu Sep 16 20:28:48 2010 +0200
Fix wrong call to hooks in WellWell::Menu.
lib/WellWell/Menu.pm | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/lib/WellWell/Menu.pm b/lib/WellWell/Menu.pm
index e54fd40..98ff926 100644
--- a/lib/WellWell/Menu.pm
+++ b/lib/WellWell/Menu.pm
@@ -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';
More information about the wellwell-devel
mailing list