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)