From 19633a05d8bd5afa6d01dc5ada9becfcd02b0ac0 Mon Sep 17 00:00:00 2001 From: chris Date: Tue, 17 Sep 2013 18:00:30 +0800 Subject: [PATCH] Fix parser_front_end.rb for page content --- lib/parsers/parser_front_end.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/parsers/parser_front_end.rb b/lib/parsers/parser_front_end.rb index 46b5066df..60a2a680b 100644 --- a/lib/parsers/parser_front_end.rb +++ b/lib/parsers/parser_front_end.rb @@ -32,13 +32,7 @@ module ParserFrontEnd ret = '' part = PagePart.find(front['part_id']) if front['part_id'] ret << eval("\"#{front['path']}\"") rescue '' - args.each do |index,arg| - if index=="tag_id" || index=="category_id" - ret << (ret.include?("?") ? "&#{index}[]=#{arg}": "?#{index}[]=#{arg}" ) - else - ret << (ret.include?("?") ? "&#{index}=#{arg}": "?#{index}=#{arg}" ) - end - end if args + ret << (ret.include?("?") ? "&#{args.to_param}" : "?#{args.to_param}") if args fragment = Nokogiri::HTML::DocumentFragment.new(body, "
") end front.swap(fragment)