瀏覽代碼

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

unknwon 5 年之前
父節點
當前提交
08a53e5eca
共有 1 個文件被更改,包括 1 次插入1 次删除
  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
 	}