Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-12-01 06:16:09 +01:00

replace path.Join

This commit is contained in:
Unknwon 2015-08-02 11:52:48 +08:00
parent 1490e862cc
commit d496d0cc4d

View file

@ -203,11 +203,11 @@ func NewConfigContext() {
CustomPath = os.Getenv("GOGS_CUSTOM")
if len(CustomPath) == 0 {
CustomPath = path.Join(workDir, "custom")
CustomPath = workDir + "/custom"
}
if len(CustomConf) == 0 {
CustomConf = path.Join(CustomPath, "conf/app.ini")
CustomConf = CustomPath + "/conf/app.ini"
}
if com.IsFile(CustomConf) {