[MM-34798] Respect MM_SERVER_PATH when looking for templates (#17410)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
a1a8f00957
Коммит
f14b0097dd
@@ -67,7 +67,6 @@ import (
|
||||
"github.com/mattermost/mattermost-server/v5/store/sqlstore"
|
||||
"github.com/mattermost/mattermost-server/v5/store/timerlayer"
|
||||
"github.com/mattermost/mattermost-server/v5/utils"
|
||||
"github.com/mattermost/mattermost-server/v5/utils/fileutils"
|
||||
)
|
||||
|
||||
var MaxNotificationsPerChannelDefault int64 = 1000000
|
||||
@@ -384,7 +383,7 @@ func NewServer(options ...Option) (*Server, error) {
|
||||
}
|
||||
}
|
||||
|
||||
templatesDir, ok := fileutils.FindDir("templates")
|
||||
templatesDir, ok := templates.GetTemplateDirectory()
|
||||
if !ok {
|
||||
mlog.Error("Failed find server templates", mlog.String("directory", "templates"))
|
||||
} else {
|
||||
|
||||
Ссылка в новой задаче
Block a user