Forgot to commit those files
Cette révision appartient à :
Parent
e5a3974a94
révision
6e63555a33
2 fichiers modifiés avec 4 ajouts et 0 suppressions
|
@ -7,6 +7,7 @@ import (
|
|||
"reflect"
|
||||
|
||||
"github.com/NyaaPantsu/nyaa/config"
|
||||
"github.com/NyaaPantsu/nyaa/utils/categories"
|
||||
)
|
||||
|
||||
// run before config/parse.go:init()
|
||||
|
@ -14,6 +15,7 @@ var _ = func() (_ struct{}) {
|
|||
config.ConfigPath = path.Join("..", "..", "..", config.ConfigPath)
|
||||
config.DefaultConfigPath = path.Join("..", "..", "..", config.DefaultConfigPath)
|
||||
config.Reload()
|
||||
categories.InitCategories()
|
||||
return
|
||||
}()
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@ import (
|
|||
"strings"
|
||||
|
||||
"github.com/NyaaPantsu/nyaa/config"
|
||||
"github.com/NyaaPantsu/nyaa/utils/categories"
|
||||
"github.com/NyaaPantsu/nyaa/utils/publicSettings"
|
||||
)
|
||||
|
||||
|
@ -16,6 +17,7 @@ var _ = func() (_ struct{}) {
|
|||
config.DefaultConfigPath = path.Join("..", "..", "..", config.DefaultConfigPath)
|
||||
config.Reload()
|
||||
config.Get().I18n.Directory = path.Join("..", "..", "..", config.Get().I18n.Directory)
|
||||
categories.InitCategories()
|
||||
return
|
||||
}()
|
||||
|
||||
|
|
Référencer dans un nouveau ticket