plugin/livedoor_weather.rb in tdiary-contrib-4.1.3 vs plugin/livedoor_weather.rb in tdiary-contrib-4.2.0

- old
+ new

@@ -95,11 +95,11 @@ height = doc.elements["image/height"].text end result = "" result << %Q|<div class="lwws">| - if @conf['lwws.icon.disp'] != "t" or @conf.mobile_agent? then + if @conf['lwws.icon.disp'] != "t" then result << %Q|<a href="#{h(detail_url)}">#{telop}</a>| else result << %Q|<a href="#{h(detail_url)}"><img src="#{url}" border="0" alt="#{title}" title="#{title}" width=#{width} height="#{height}"></a>| end if @conf['lwws.max_temp.disp'] == "t" and not max_temp.nil? then @@ -156,10 +156,10 @@ result end add_body_enter_proc do |date| - unless @conf.mobile_agent? or @conf.iphone? or feed? or bot? + unless feed? or bot? lwws_to_html(date) end end add_update_proc do