Skip to content

Commit

Permalink
Fixed a formatting error in Flickr::Photo#url
Browse files Browse the repository at this point in the history
  • Loading branch information
markoa committed Dec 6, 2008
1 parent 50b8210 commit 5c19359
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/flickr/base.rb
Expand Up @@ -394,8 +394,7 @@ def contexts() @contexts ||= @flickr.photos.getAllContexts(self) end
def url(size=nil)
base = 'http://static.flickr.com'
ext = (size == 'o') ? self.originalformat : 'jpg'
return size ? "#{base}/#@server/#{@id}_#{@secret}_#{size}.#{ext}"
: "#{base}/#@server/#{@id}_#{@secret}.jpg"
return size ? "#{base}/#@server/#{@id}_#{@secret}_#{size}.#{ext}" : "#{base}/#@server/#{@id}_#{@secret}.jpg"
end

def delete() @flickr.photos.delete(self) end
Expand Down

0 comments on commit 5c19359

Please sign in to comment.