Skip to content

Commit 4332070

Browse files
committed
chore: addressed spelling errors
1 parent 524dd74 commit 4332070

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

models/avatars/avatar_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ const gravatarSource = "https://secure.gravatar.com/avatar/"
1919
func disableGravatar(t *testing.T) {
2020
err := system_model.SetSettings(t.Context(), map[string]string{setting.Config().Picture.EnableFederatedAvatar.DynKey(): "false"})
2121
assert.NoError(t, err)
22-
// EnableGravatar.SelectFrom == picture.disable_gravatar for backwards compatability; .Value will flip correctly but the true value here is counterintuitive
22+
// EnableGravatar.SelectFrom == picture.disable_gravatar for backwards compatibility; .Value will flip correctly but the true value here is counterintuitive
2323
err = system_model.SetSettings(t.Context(), map[string]string{setting.Config().Picture.EnableGravatar.SelectFromKey(): "true"})
2424
assert.NoError(t, err)
2525
}
2626

2727
func enableGravatar(t *testing.T) {
28-
// EnableGravatar.SelectFrom == picture.disable_gravatar for backwards compatability; .Value will flip correctly but the false value here is counterintuitive
28+
// EnableGravatar.SelectFrom == picture.disable_gravatar for backwards compatibility; .Value will flip correctly but the false value here is counterintuitive
2929
err := system_model.SetSettings(t.Context(), map[string]string{setting.Config().Picture.EnableGravatar.SelectFromKey(): "false"})
3030
assert.NoError(t, err)
3131
setting.GravatarSource = gravatarSource

routers/install/install.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ func SubmitInstall(ctx *context.Context) {
427427

428428
cfg.Section("server").Key("OFFLINE_MODE").SetValue(strconv.FormatBool(form.OfflineMode))
429429
if err := system_model.SetSettings(ctx, map[string]string{
430-
// Form is submitted on install and should use the SelectFrom key for backwards compatability; getting the value will properly invert the boolean
430+
// Form is submitted on install and should use the SelectFrom key for backwards compatibility; getting the value will properly invert the boolean
431431
setting.Config().Picture.EnableGravatar.SelectFromKey(): strconv.FormatBool(!form.EnableGravatar),
432432
setting.Config().Picture.EnableFederatedAvatar.DynKey(): strconv.FormatBool(form.EnableFederatedAvatar),
433433
}); err != nil {

0 commit comments

Comments
 (0)