summaryrefslogtreecommitdiffstats
path: root/routers/user
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2017-04-15 04:02:46 +0200
committerLunny Xiao <xiaolunwen@gmail.com>2017-04-15 10:02:46 +0800
commit237270ef50ba00b3007ea10c2302bc240188e092 (patch)
tree5541d3ee0902139e15777dea42fb5e5fc00e703e /routers/user
parentd409d3ab57894de853bbc5fbacf32628b4d8fa1e (diff)
downloadgitea-237270ef50ba00b3007ea10c2302bc240188e092.tar.gz
gitea-237270ef50ba00b3007ea10c2302bc240188e092.zip
Orgs: fix org page title when full name is not defined (#1495)
Diffstat (limited to 'routers/user')
-rw-r--r--routers/user/home.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/user/home.go b/routers/user/home.go
index 868f984b5a..3fe8a57d09 100644
--- a/routers/user/home.go
+++ b/routers/user/home.go
@@ -377,7 +377,7 @@ func showOrgProfile(ctx *context.Context) {
}
org := ctx.Org.Organization
- ctx.Data["Title"] = org.FullName
+ ctx.Data["Title"] = org.DisplayName()
page := ctx.QueryInt("page")
if page <= 0 {