page: include partial templates from *.inc.html
[minimedit.git] / article.inc.php
index a39b8971c3546cc236a84fbd63b44571de780064..6fcb640dc5e8ee2f857999010fc693814a738557 100644 (file)
@@ -159,7 +159,7 @@ class PageSearch
                                }
                                # match **/*.html
                                return $current->isDir()
-                                       || preg_match('/\.html$/', $current->getFilename());
+                                       || preg_match('/(?<!\.inc)\.html$/', $current->getFilename());
                        }
                );
        }