From 6d5b3a35e9217bd3fecdf2fa938022bb74686a81 Mon Sep 17 00:00:00 2001 From: saurabhbhatia Date: Wed, 13 Nov 2013 13:23:12 +0800 Subject: [PATCH] Alternative fix in parser frontend --- lib/parsers/parser_front_end.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/parsers/parser_front_end.rb b/lib/parsers/parser_front_end.rb index 69d64432b..49e7d1a60 100644 --- a/lib/parsers/parser_front_end.rb +++ b/lib/parsers/parser_front_end.rb @@ -47,7 +47,7 @@ module ParserFrontEnd ret = '' part = PagePart.find(front['part_id']) if front['part_id'] ret << eval("\"#{front['path']}\"") rescue '' - ret << (ret.include?("?") ? "&#{args.to_param}" : "?#{args.to_param}") unless args.nil? + ret << (ret.include?("?") ? "&#{args.to_param}" : "?#{args.to_param}") if args.present? fragment = Nokogiri::HTML::DocumentFragment.new(body, "
") end front.swap(fragment)