aboutsummaryrefslogtreecommitdiffstats
path: root/routers/repo
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-06-22 13:14:03 -0400
committerUnknown <joe2010xtmf@163.com>2014-06-22 13:14:03 -0400
commit9924e65ca11770f247723b10fcbdb81dc9534b32 (patch)
tree23995a2838ac24c88ebfd9267b567ec7e4f1a05c /routers/repo
parentc280415e0b449b420f4540886b8e16ae3c9e6454 (diff)
downloadgitea-9924e65ca11770f247723b10fcbdb81dc9534b32.tar.gz
gitea-9924e65ca11770f247723b10fcbdb81dc9534b32.zip
In progress of name template name constant
Diffstat (limited to 'routers/repo')
-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 6db453007c..6154eede38 100644
--- a/routers/repo/repo.go
+++ b/routers/repo/repo.go
@@ -318,7 +318,7 @@ func basicDecode(encoded string) (user string, name string, err error) {
func authRequired(ctx *middleware.Context) {
ctx.ResponseWriter.Header().Set("WWW-Authenticate", "Basic realm=\".\"")
ctx.Data["ErrorMsg"] = "no basic auth and digit auth"
- ctx.HTML(401, fmt.Sprintf("status/401"))
+ ctx.HTML(401, base.TplName("status/401"))
}
func Action(ctx *middleware.Context, params martini.Params) {