1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-02 12:03:27 +00:00

修复key字符串bug

This commit is contained in:
xiemengjun 2012-12-17 20:37:19 +08:00
parent 71b03774cc
commit ad892008cc

View File

@ -47,7 +47,7 @@ func Compare(a, b interface{}) (equal bool) {
// AddFuncMap let user to register a func in the template // AddFuncMap let user to register a func in the template
func AddFuncMap(key string, funname interface{}) error { func AddFuncMap(key string, funname interface{}) error {
if _, ok := beegoTplFuncMap["key"]; ok { if _, ok := beegoTplFuncMap[key]; ok {
beegoTplFuncMap[key] = funname beegoTplFuncMap[key] = funname
return nil return nil
} }