Fix menu for frontend

This commit is contained in:
Christophe Vilayphiou committed 2012-04-05 14:06:58 +08:00
1 parent cedd782e7f
commit 1b79400f44
1 file changed
+1 -1
+1 -1
View File
@@ -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