修改单例配置管理器及模板引擎对象的启动参数名称

This commit is contained in:
John
2018-05-03 17:46:40 +08:00
parent c1306c1776
commit 41df1894a9

View File

@ -41,7 +41,7 @@ func View() *gview.View {
if result != nil {
return result.(*gview.View)
} else {
path := gcmd.Option.Get("viewpath")
path := gcmd.Option.Get("gf.viewpath")
if path == "" {
path = genv.Get("gf.viewpath")
if path == "" {
@ -67,7 +67,7 @@ func Config() *gcfg.Config {
if result != nil {
return result.(*gcfg.Config)
} else {
path := gcmd.Option.Get("cfgpath")
path := gcmd.Option.Get("gf.cfgpath")
if path == "" {
path = genv.Get("gf.cfgpath")
if path == "" {