tpl: Prevent isBaseTemplate() from matching "baseof" in dir

Fixes #4809
This commit is contained in:
Anthony Fok authored and Bjørn Erik Pedersen committed 2018-06-04 10:09:55 +03:00
1 parent 0c6c98e401
commit c3115292a7
1 file changed
+1 -1
+1 -1
View File
@@ -726,5 +726,5 @@ func isBackupFile(path string) bool {
const baseFileBase = "baseof"
func isBaseTemplate(path string) bool {
return strings.Contains(path, baseFileBase)
return strings.Contains(filepath.Base(path), baseFileBase)
}