aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/admin
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2022-05-10 23:55:54 +0200
committerGitHub <noreply@github.com>2022-05-10 23:55:54 +0200
commit318f360252777c6eb819ab206a1f276fa4969f3a (patch)
tree7a73ede2df5b52be940dd9b4005137c1d5d53c04 /routers/web/admin
parent3c658dff233e791856496761325f5ebf787d7521 (diff)
downloadgitea-318f360252777c6eb819ab206a1f276fa4969f3a.tar.gz
gitea-318f360252777c6eb819ab206a1f276fa4969f3a.zip
Update go tool dependencies (#19676)
* Update go tool dependencies Updated all tool dependencies to latest tags, hoping CI will like it. * fix new lint errors * handle more strings.Title cases * remove lint skip
Diffstat (limited to 'routers/web/admin')
-rw-r--r--routers/web/admin/admin.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/web/admin/admin.go b/routers/web/admin/admin.go
index d4093f2049..78347e67c4 100644
--- a/routers/web/admin/admin.go
+++ b/routers/web/admin/admin.go
@@ -26,6 +26,7 @@ import (
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/timeutil"
"code.gitea.io/gitea/modules/updatechecker"
+ "code.gitea.io/gitea/modules/util"
"code.gitea.io/gitea/modules/web"
"code.gitea.io/gitea/services/cron"
"code.gitea.io/gitea/services/forms"
@@ -245,7 +246,7 @@ func Config(ctx *context.Context) {
ctx.Data["OfflineMode"] = setting.OfflineMode
ctx.Data["DisableRouterLog"] = setting.DisableRouterLog
ctx.Data["RunUser"] = setting.RunUser
- ctx.Data["RunMode"] = strings.Title(setting.RunMode)
+ ctx.Data["RunMode"] = util.ToTitleCase(setting.RunMode)
if version, err := git.LocalVersion(); err == nil {
ctx.Data["GitVersion"] = version.Original()
}