Skip to content

Commit ff2464c

Browse files
ethantkoenigappleboy
authored andcommitted
Fix renaming bug (#1786)
1 parent 98ae013 commit ff2464c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/repo/repo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func checkContextUser(ctx *context.Context, uid int64) *models.User {
6868
// Create render creating repository page
6969
func Create(ctx *context.Context) {
7070
if !ctx.User.CanCreateRepo() {
71-
ctx.RenderWithErr(ctx.Tr("repo.form.reach_limit_of_creation", ctx.User.RepoCreationNum()), tplCreate, nil)
71+
ctx.RenderWithErr(ctx.Tr("repo.form.reach_limit_of_creation", ctx.User.MaxCreationLimit()), tplCreate, nil)
7272
}
7373

7474
ctx.Data["Title"] = ctx.Tr("new_repo")

0 commit comments

Comments
 (0)