aboutsummaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorEthan Koenig <etk39@cornell.edu>2017-05-24 02:01:02 -0400
committerBo-Yi Wu <appleboy.tw@gmail.com>2017-05-24 14:01:02 +0800
commitff2464c87d0c9212165f203b660f317f4289117a (patch)
tree0a3e63964ab8e4abd2f2f538790f838e60167d4a /routers
parent98ae013e901927bc2ce4fffd6d10b4b964c49cd6 (diff)
downloadgitea-ff2464c87d0c9212165f203b660f317f4289117a.tar.gz
gitea-ff2464c87d0c9212165f203b660f317f4289117a.zip
Fix renaming bug (#1786)
Diffstat (limited to 'routers')
-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 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")