Этот коммит содержится в:
Jesse Hallam
2024-05-10 18:13:05 -03:00
коммит произвёл GitHub
родитель daf84488cc
Коммит 630bd40141
17 изменённых файлов: 95 добавлений и 91 удалений

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

@@ -7,7 +7,6 @@ import (
"bytes"
"html/template"
"io"
"os"
"path/filepath"
"sync"
@@ -33,12 +32,7 @@ type Data struct {
}
func GetTemplateDirectory() (string, bool) {
templatesDir := "templates"
if mattermostPath := os.Getenv("MM_SERVER_PATH"); mattermostPath != "" {
templatesDir = filepath.Join(mattermostPath, templatesDir)
}
return fileutils.FindDir(templatesDir)
return fileutils.FindDir("templates")
}
// NewFromTemplates creates a new templates container using a