diff options
author | Ethan Koenig <etk39@cornell.edu> | 2017-05-24 02:01:02 -0400 |
---|---|---|
committer | Bo-Yi Wu <appleboy.tw@gmail.com> | 2017-05-24 14:01:02 +0800 |
commit | ff2464c87d0c9212165f203b660f317f4289117a (patch) | |
tree | 0a3e63964ab8e4abd2f2f538790f838e60167d4a /routers | |
parent | 98ae013e901927bc2ce4fffd6d10b4b964c49cd6 (diff) | |
download | gitea-ff2464c87d0c9212165f203b660f317f4289117a.tar.gz gitea-ff2464c87d0c9212165f203b660f317f4289117a.zip |
Fix renaming bug (#1786)
Diffstat (limited to 'routers')
-rw-r--r-- | routers/repo/repo.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/repo.go b/routers/repo/repo.go index 8ebcee79c7..5fcbb84b9a 100644 --- a/routers/repo/repo.go +++ b/routers/repo/repo.go @@ -68,7 +68,7 @@ func checkContextUser(ctx *context.Context, uid int64) *models.User { // Create render creating repository page func Create(ctx *context.Context) { if !ctx.User.CanCreateRepo() { - ctx.RenderWithErr(ctx.Tr("repo.form.reach_limit_of_creation", ctx.User.RepoCreationNum()), tplCreate, nil) + ctx.RenderWithErr(ctx.Tr("repo.form.reach_limit_of_creation", ctx.User.MaxCreationLimit()), tplCreate, nil) } ctx.Data["Title"] = ctx.Tr("new_repo") |