mirror of
https://github.com/astaxie/beego.git
synced 2024-11-22 07:20:55 +00:00
fix #260
This commit is contained in:
parent
5f4fe6d868
commit
4bcbc588fc
@ -162,7 +162,7 @@ func getTplDeep(root, file string, t *template.Template) (*template.Template, []
|
||||
} else {
|
||||
relativefile := filepath.Join(filepath.Dir(file), m[1])
|
||||
if e, _ := FileExists(relativefile); e {
|
||||
t, _, err = getTplDeep(root, m[1], t)
|
||||
t, _, err = getTplDeep(root, relativefile, t)
|
||||
if err != nil {
|
||||
return nil, [][]string{}, err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user