summaryrefslogtreecommitdiffstats
path: root/routers/repo/repo.go
diff options
context:
space:
mode:
authorJonas Östanbäck <cez81@users.noreply.github.com>2017-05-24 02:27:08 +0200
committerLunny Xiao <xiaolunwen@gmail.com>2017-05-24 08:27:08 +0800
commit7b907ed348595e45d2d69cdabf70bfbbbb41c3ee (patch)
tree65b6c2b6467779529ea0e75f5f5a4e169d35f67b /routers/repo/repo.go
parentde39d09caa2469729af5ad4cf225ab4e52aa6203 (diff)
downloadgitea-7b907ed348595e45d2d69cdabf70bfbbbb41c3ee.tar.gz
gitea-7b907ed348595e45d2d69cdabf70bfbbbb41c3ee.zip
Rename RepoCreationNum -> MaxCreationLimit (#1766)
Diffstat (limited to 'routers/repo/repo.go')
-rw-r--r--routers/repo/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/repo.go b/routers/repo/repo.go
index e2e2dc7a3b..8ebcee79c7 100644
--- a/routers/repo/repo.go
+++ b/routers/repo/repo.go
@@ -93,7 +93,7 @@ func Create(ctx *context.Context) {
func handleCreateError(ctx *context.Context, owner *models.User, err error, name string, tpl base.TplName, form interface{}) {
switch {
case models.IsErrReachLimitOfRepo(err):
- ctx.RenderWithErr(ctx.Tr("repo.form.reach_limit_of_creation", owner.RepoCreationNum()), tpl, form)
+ ctx.RenderWithErr(ctx.Tr("repo.form.reach_limit_of_creation", owner.MaxCreationLimit()), tpl, form)
case models.IsErrRepoAlreadyExist(err):
ctx.Data["Err_RepoName"] = true
ctx.RenderWithErr(ctx.Tr("form.repo_name_been_taken"), tpl, form)