From 2e5b3e8ef727945298f7305840d9e0a2fef62a93 Mon Sep 17 00:00:00 2001 From: saurabhbhatia Date: Wed, 13 Nov 2013 13:02:20 +0800 Subject: [PATCH] Fix for Reloading bug --- 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 22c8b51e..69d64432 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}") if args + ret << (ret.include?("?") ? "&#{args.to_param}" : "?#{args.to_param}") unless args.nil? fragment = Nokogiri::HTML::DocumentFragment.new(body, "
") end front.swap(fragment)