mirror of https://github.com/gogs/gogs.git
pkg/context/notice: use path.Join to concatenate path
parent
025972ef64
commit
08a53e5eca
|
@ -19,7 +19,7 @@ import (
|
||||||
// renderNoticeBanner checks if a notice banner file exists and loads the message to display
|
// renderNoticeBanner checks if a notice banner file exists and loads the message to display
|
||||||
// on all pages.
|
// on all pages.
|
||||||
func (c *Context) renderNoticeBanner() {
|
func (c *Context) renderNoticeBanner() {
|
||||||
fpath := path.Join(setting.CustomPath, "notice/banner.md")
|
fpath := path.Join(setting.CustomPath, "notice", "banner.md")
|
||||||
if !com.IsExist(fpath) {
|
if !com.IsExist(fpath) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue