diff options
author | David Schneiderbauer <daviian@users.noreply.github.com> | 2018-05-17 06:05:00 +0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2018-05-17 12:05:00 +0800 |
commit | 2aabfc1afa8b808374c76bdb20b936847ba50c86 (patch) | |
tree | 216750c58e41e4684887015b9e6eb0f339ff3e1a /routers/org | |
parent | 8f4d11af0b031451a93d39533ff7fa679195db2a (diff) | |
download | gitea-2aabfc1afa8b808374c76bdb20b936847ba50c86.tar.gz gitea-2aabfc1afa8b808374c76bdb20b936847ba50c86.zip |
Splitted the user settings code into several files to be more maintainable (#3968)
* refactor setting router code
splitted up one huge router settings file into the smaller files
representing the actual page structure
* move code to subfolder
* rename functions
* renamed files
* add copyright information
Diffstat (limited to 'routers/org')
-rw-r--r-- | routers/org/setting.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/org/setting.go b/routers/org/setting.go index 937697d07e..7f652c11d6 100644 --- a/routers/org/setting.go +++ b/routers/org/setting.go @@ -13,7 +13,7 @@ import ( "code.gitea.io/gitea/modules/context" "code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/modules/setting" - "code.gitea.io/gitea/routers/user" + userSetting "code.gitea.io/gitea/routers/user/setting" ) const ( @@ -91,7 +91,7 @@ func SettingsPost(ctx *context.Context, form auth.UpdateOrgSettingForm) { // SettingsAvatar response for change avatar on settings page func SettingsAvatar(ctx *context.Context, form auth.AvatarForm) { form.Source = auth.AvatarLocal - if err := user.UpdateAvatarSetting(ctx, form, ctx.Org.Organization); err != nil { + if err := userSetting.UpdateAvatarSetting(ctx, form, ctx.Org.Organization); err != nil { ctx.Flash.Error(err.Error()) } else { ctx.Flash.Success(ctx.Tr("org.settings.update_avatar_success")) |