diff options
author | unknwon <u@gogs.io> | 2019-07-28 16:08:00 -0700 |
---|---|---|
committer | unknwon <u@gogs.io> | 2019-07-28 16:08:00 -0700 |
commit | 08a53e5ecaddf24a71775c85d75d7efc8806e924 (patch) | |
tree | 48d84064e0fb34ce68b86586aaf30f14986c6c04 /pkg/context/notice.go | |
parent | 025972ef643fa7628551529c2fd145e2a184465b (diff) |
pkg/context/notice: use path.Join to concatenate path
Diffstat (limited to 'pkg/context/notice.go')
-rw-r--r-- | pkg/context/notice.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/context/notice.go b/pkg/context/notice.go index 2ac1d453..c5a749dd 100644 --- a/pkg/context/notice.go +++ b/pkg/context/notice.go @@ -19,7 +19,7 @@ import ( // renderNoticeBanner checks if a notice banner file exists and loads the message to display // on all pages. func (c *Context) renderNoticeBanner() { - fpath := path.Join(setting.CustomPath, "notice/banner.md") + fpath := path.Join(setting.CustomPath, "notice", "banner.md") if !com.IsExist(fpath) { return } |