aboutsummaryrefslogtreecommitdiffstats
path: root/routers/private/internal_repo.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/private/internal_repo.go')
-rw-r--r--routers/private/internal_repo.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/private/internal_repo.go b/routers/private/internal_repo.go
index e8ee8ba8ac..aad0a3fb1a 100644
--- a/routers/private/internal_repo.go
+++ b/routers/private/internal_repo.go
@@ -19,8 +19,8 @@ import (
// RepoAssignment assigns the repository and gitrepository to the private context
func RepoAssignment(ctx *gitea_context.PrivateContext) context.CancelFunc {
- ownerName := ctx.Params(":owner")
- repoName := ctx.Params(":repo")
+ ownerName := ctx.PathParam(":owner")
+ repoName := ctx.PathParam(":repo")
repo := loadRepository(ctx, ownerName, repoName)
if ctx.Written() {