Этот коммит содержится в:
=Corey Hulen
2016-01-27 10:56:15 -05:00
родитель b7606da40f
Коммит dc4b71bba2
5 изменённых файлов: 18 добавлений и 14 удалений

Просмотреть файл

@@ -1157,7 +1157,7 @@ func uploadProfileImage(c *Context, w http.ResponseWriter, r *http.Request) {
path := "teams/" + c.Session.TeamId + "/users/" + c.Session.UserId + "/profile.png"
if err := writeFile(buf.Bytes(), path); err != nil {
c.Err = model.NewAppError("uploadProfileImage", "Couldn't upload profile image", "")
c.Err = model.NewLocAppError("uploadProfileImage", "api.user.upload_profile_user.upload_profile.app_error", nil, "")
return
}