more on change avatar

This commit is contained in:
Unknwon committed 2014-11-21 12:51:36 -05:00
1 parent 22ab4fa1b0
commit ef275ebf62
11 files changed
+42 -18

No files matched your search

+1
View File
@@ -163,6 +163,7 @@ func (u *User) UploadAvatar(data []byte) error {
return err
}
os.MkdirAll(setting.AvatarUploadPath, os.ModePerm)
fw, err := os.Create(savePath)
if err != nil {
sess.Rollback()