mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-23 19:47:07 +09:00
move templateFuncs to one file, add middleware context.
This commit is contained in:
1 parent
06deed820d
commit
fa5ad1e465
10 files changed
+173
-95
No files matched your search
@@ -15,7 +15,11 @@ import (
|
||||
"github.com/Unknwon/goconfig"
|
||||
)
|
||||
|
||||
var Cfg *goconfig.ConfigFile
|
||||
var (
|
||||
AppVer string
|
||||
AppName string
|
||||
Cfg *goconfig.ConfigFile
|
||||
)
|
||||
|
||||
func exeDir() (string, error) {
|
||||
file, err := exec.LookPath(os.Args[0])
|
||||
@@ -52,4 +56,6 @@ func init() {
|
||||
}
|
||||
}
|
||||
Cfg.BlockMode = false
|
||||
|
||||
AppName = Cfg.MustValue("", "APP_NAME")
|
||||
}
|
||||
Reference in new issue
Block a user