From 4ce0bda00bcfc7ee2ce271fc5d092f0e294a7afa Mon Sep 17 00:00:00 2001 From: chris2tof Date: Mon, 5 Sep 2011 16:18:49 +0800 Subject: [PATCH] Fix links in the menu when in edit or normal render --- lib/parser.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/parser.rb b/lib/parser.rb index fa321407..56a70d38 100644 --- a/lib/parser.rb +++ b/lib/parser.rb @@ -215,12 +215,12 @@ module Parser c.define_tag 'menu' do |tag| home = get_homepage menu = page.design.layout.menu - menu_level(home, 1, menu) + menu_level(home, 1, menu, true) end end end - def menu_level(page, current, menu) + def menu_level(page, current, menu, edit = false) if current <= menu.levels res = "