aboutsummaryrefslogtreecommitdiff
path: root/internal/context/notice.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/context/notice.go')
-rw-r--r--internal/context/notice.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/context/notice.go b/internal/context/notice.go
index dea72043..6f825fd8 100644
--- a/internal/context/notice.go
+++ b/internal/context/notice.go
@@ -6,20 +6,20 @@ package context
import (
"os"
- "path"
+ "path/filepath"
"github.com/unknwon/com"
log "unknwon.dev/clog/v2"
+ "gogs.io/gogs/internal/conf"
"gogs.io/gogs/internal/markup"
- "gogs.io/gogs/internal/setting"
"gogs.io/gogs/internal/tool"
)
// 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 := filepath.Join(conf.CustomDir(), "notice", "banner.md")
if !com.IsExist(fpath) {
return
}