[MM-34798] Respect MM_SERVER_PATH when looking for templates (#17410)

Этот коммит содержится в:
Ben Schumacher
2021-04-21 20:35:57 +02:00
коммит произвёл GitHub
родитель a1a8f00957
Коммит f14b0097dd
3 изменённых файлов: 14 добавлений и 3 удалений

Просмотреть файл

@@ -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 {