fix error
This commit is contained in:
parent
86fbe38431
commit
0555890e8d
|
@ -333,9 +333,9 @@ class SiteFeedAnnc
|
||||||
end
|
end
|
||||||
if tmp["link_to_show"].nil?
|
if tmp["link_to_show"].nil?
|
||||||
if !is_widget
|
if !is_widget
|
||||||
tmp["link_to_show"] = UseSourceUrl && tmp["show_url"] ? URI.join("#{tmp["source_url"]}/#{locale}","#{tmp["show_url"]}").to_s : OrbitHelper.url_to_show(tmp["params"]) rescue ''
|
tmp["link_to_show"] = UseSourceUrl && tmp["show_url"] ? URI.join("#{tmp["source_url"]}/#{locale}",URI.encode("#{tmp["show_url"]}")).to_s : OrbitHelper.url_to_show(tmp["params"]) rescue ''
|
||||||
else
|
else
|
||||||
tmp["link_to_show"] = UseSourceUrl && tmp["show_url"] ? URI.join("#{tmp["source_url"]}/#{locale}","#{tmp["show_url"]}").to_s : OrbitHelper.widget_item_url(tmp["params"]) rescue ''
|
tmp["link_to_show"] = UseSourceUrl && tmp["show_url"] ? URI.join("#{tmp["source_url"]}/#{locale}",URI.encode("#{tmp["show_url"]}")).to_s : OrbitHelper.widget_item_url(tmp["params"]) rescue ''
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
tmp
|
tmp
|
||||||
|
@ -381,4 +381,4 @@ class SiteFeedAnnc
|
||||||
def category_title
|
def category_title
|
||||||
self[:category_title][I18n.locale.to_s]
|
self[:category_title][I18n.locale.to_s]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue