summaryrefslogtreecommitdiffstats
path: root/models/wiki.go
diff options
context:
space:
mode:
authorLauris BH <lauris@nix.lv>2018-05-02 09:10:19 +0300
committerGitHub <noreply@github.com>2018-05-02 09:10:19 +0300
commit5ffdf9388b6dc67f2e2c137733d27b703c41ef88 (patch)
treed9983259d35ca3954c3fcc153df57b7f17a02d9f /models/wiki.go
parent9ec7f6b954414be5c6d1738a0335ad1fb21e280c (diff)
downloadgitea-5ffdf9388b6dc67f2e2c137733d27b703c41ef88.tar.gz
gitea-5ffdf9388b6dc67f2e2c137733d27b703c41ef88.zip
Fix to use only needed columns from tables to get repository git paths (#3870)
Diffstat (limited to 'models/wiki.go')
-rw-r--r--models/wiki.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/wiki.go b/models/wiki.go
index 3e0d1b9ce8..4637a449cd 100644
--- a/models/wiki.go
+++ b/models/wiki.go
@@ -67,7 +67,7 @@ func WikiPath(userName, repoName string) string {
// WikiPath returns wiki data path for given repository.
func (repo *Repository) WikiPath() string {
- return WikiPath(repo.MustOwner().Name, repo.Name)
+ return WikiPath(repo.MustOwnerName(), repo.Name)
}
// HasWiki returns true if repository has wiki.