Ver Fonte

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

unknwon há 5 anos atrás
pai
commit
08a53e5eca
1 ficheiros alterados com 1 adições e 1 exclusões
  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
 	}