Fix path error in parser for breadcrumb

This commit is contained in:
chris 2013-02-06 18:14:24 +08:00
parent c7cf587581
commit 0cacfb7c05
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ module ParserFrontEnd
page_breadcrumb = body.css('.page_breadcrumb').first page_breadcrumb = body.css('.page_breadcrumb').first
if page_breadcrumb if page_breadcrumb
res = "<div id='#{page_breadcrumb['id']}', class='#{page_breadcrumb['class']}'>" res = "<div id='#{page_breadcrumb['id']}', class='#{page_breadcrumb['class']}'>"
res << "<div class='dymanic_load' path='#{front_show_site_breadcrumb_path}'></div>" res << "<div class='dymanic_load' path='#{front_show_breadcrumb_path}'></div>"
res << "</div>" res << "</div>"
fragment = Nokogiri::HTML::DocumentFragment.new(body, res) fragment = Nokogiri::HTML::DocumentFragment.new(body, res)
page_breadcrumb.swap(fragment) page_breadcrumb.swap(fragment)