From 1b79400f44c9f57ae121f04fcd5222716bdbeaed Mon Sep 17 00:00:00 2001 From: Christophe Vilayphiou Date: Thu, 5 Apr 2012 14:06:58 +0800 Subject: [PATCH] Fix menu for frontend --- lib/parsers/parser_common.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/parsers/parser_common.rb b/lib/parsers/parser_common.rb index 24c00684..bd05a4e8 100644 --- a/lib/parsers/parser_common.rb +++ b/lib/parsers/parser_common.rb @@ -102,7 +102,7 @@ module ParserCommon page_menu = body.css('.page_menu').first home = get_homepage menu = page.design.layout.menu - fragment = Nokogiri::HTML::DocumentFragment.new(body, menu_level(home, 0, menu, true)) + fragment = Nokogiri::HTML::DocumentFragment.new(body, menu_level(home, 0, menu, edit)) page_menu.swap(fragment) end