missed one spot where route changed

This commit is contained in:
Sam
2014-05-28 01:08:45 +10:00
parent 663c57a0f0
commit 1e28668e9f
2 changed files with 4 additions and 4 deletions

View File

@ -354,7 +354,7 @@ class User < ActiveRecord::Base
def self.avatar_template(username,uploaded_avatar_id)
id = uploaded_avatar_id || -1
username ||= ""
"/user_avatar/#{username.downcase}/{size}/#{id}.png"
"/user_avatar/#{RailsMultisite::ConnectionManagement.current_hostname}/#{username.downcase}/{size}/#{id}.png"
end
def avatar_template