Fix menu for frontend

This commit is contained in:
Christophe Vilayphiou 2012-04-05 14:06:58 +08:00
parent cedd782e7f
commit 1b79400f44
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ module ParserCommon
page_menu = body.css('.page_menu').first page_menu = body.css('.page_menu').first
home = get_homepage home = get_homepage
menu = page.design.layout.menu 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) page_menu.swap(fragment)
end end