Parcourir la source

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

unknwon il y a 5 ans
Parent
commit
08a53e5eca
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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
 	}