1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-22 17:50:50 +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
func AddFuncMap(key string, funname interface{}) error {
if _, ok := beegoTplFuncMap["key"]; ok {
if _, ok := beegoTplFuncMap[key]; ok {
beegoTplFuncMap[key] = funname
return nil
}