Changeset 34374

Show
Ignore:
Timestamp:
07/09/09 18:13:25 (4 years ago)
Author:
sho
Message:

fixed bug when abstract was nil.

Location:
platform/tdiary/plugin
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • platform/tdiary/plugin/everytrail.rb

    r20669 r34374  
    99        size.collect! {|i| i.to_i } 
    1010        size[0] = 400 if size[0] == 0 
     11        size[0] = 300 if @conf.iphone? 
    1112        size[1] = 300 if size[1] == 0 
    1213        l = label ? %Q|<a href="http://www.everytrail.com/view_trip.php?trip_id=#{h trip_id}">#{h label}</a>| : '' 
  • platform/tdiary/plugin/nicovideo.rb

    r33032 r34374  
    7575 
    7676def nicovideo_player( video_id, size = [544,384] ) 
    77         if feed? or @conf.mobile_agent? then 
     77        if feed? or @conf.mobile_agent? or @conf.iphone? then 
    7878                nicovideo( video_id ) 
    7979        else 
  • platform/tdiary/plugin/search-yahoo.rb

    r33665 r34374  
    4444 
    4545def search_to_html( str ) 
    46         str.gsub( /<wbr>/, '' ).gsub( /<b>/, '<strong>' ).gsub( /<\/b>/, '</strong>' ) 
     46        (str || '').gsub( /<wbr>/, '' ).gsub( /<b>/, '<strong>' ).gsub( /<\/b>/, '</strong>' ) 
    4747end 
    4848