pkg/context/notice: use path.Join to concatenate path

This commit is contained in:
unknwon
2019-07-28 16:08:00 -07:00
parent 025972ef64
commit 08a53e5eca

View File

@@ -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
}