From 82ce516d7a2f098b6100ad7c846d655238a60c90 Mon Sep 17 00:00:00 2001 From: saurabhbhatia Date: Fri, 8 Nov 2013 18:28:09 +0800 Subject: [PATCH] Fix for more link --- 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 2ab4c985..c7be59b1 100644 --- a/lib/parsers/parser_front_end.rb +++ b/lib/parsers/parser_front_end.rb @@ -48,13 +48,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)