mirror of
https://github.com/astaxie/beego.git
synced 2024-12-22 15:30:50 +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