修复key字符串bug

This commit is contained in:
xiemengjun 2012-12-17 20:37:19 +08:00
parent 71b03774cc
commit ad892008cc
1 changed files with 1 additions and 1 deletions

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
}