Skip to content

Commit

Permalink
Fix renaming bug (#1786)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethantkoenig authored and appleboy committed May 24, 2017
1 parent 98ae013 commit ff2464c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/repo/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit ff2464c

Please sign in to comment.