Project

General

Profile

Patch #2921 » gravatar_patch_v2.diff

Fabian Buch, 2009-03-09 21:44

View differences:

vendor/plugins/gravatar/lib/gravatar.rb (working copy)
52 52
      email_hash = Digest::MD5.hexdigest(email)
53 53
      options = DEFAULT_OPTIONS.merge(options)
54 54
      options[:default] = CGI::escape(options[:default]) unless options[:default].nil?
55
      returning "http://www.gravatar.com/avatar.php?gravatar_id=#{email_hash}" do |url| 
55
      returning "http://www.gravatar.com/avatar/#{email_hash}?" do |url| 
56 56
        [:rating, :size, :default].each do |opt|
57 57
          unless options[opt].nil?
58 58
            value = h(options[opt])
......
64 64

  
65 65
  end
66 66
  
67
end
67
end
68

  
(3-3/3)