Browse Source

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

unknwon 5 years ago
parent
commit
08a53e5eca
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/context/notice.go

+ 1 - 1
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
 	}