Eliminate MM_SERVER_PATH (#24968)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
daf84488cc
Коммит
630bd40141
@@ -17,11 +17,6 @@ func CommonBaseSearchPaths() []string {
|
||||
"../../../..",
|
||||
}
|
||||
|
||||
// this enables the server to be used in tests from a different repository
|
||||
if mmPath := os.Getenv("MM_SERVER_PATH"); mmPath != "" {
|
||||
paths = append(paths, mmPath)
|
||||
}
|
||||
|
||||
return paths
|
||||
}
|
||||
|
||||
|
||||
@@ -5,8 +5,6 @@ package utils
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/mattermost/mattermost/server/public/shared/i18n"
|
||||
"github.com/mattermost/mattermost/server/v8/channels/utils/fileutils"
|
||||
@@ -16,9 +14,6 @@ import (
|
||||
// loaded already and assigns english while loading server config.
|
||||
func TranslationsPreInit() error {
|
||||
translationsDir := "i18n"
|
||||
if mattermostPath := os.Getenv("MM_SERVER_PATH"); mattermostPath != "" {
|
||||
translationsDir = filepath.Join(mattermostPath, "i18n")
|
||||
}
|
||||
|
||||
i18nDirectory, found := fileutils.FindDirRelBinary(translationsDir)
|
||||
if !found {
|
||||
|
||||
Ссылка в новой задаче
Block a user