upload: replace double line breaks by paragraphs in text input
[minimedit.git] / article.inc.php
index 6fcb640dc5e8ee2f857999010fc693814a738557..d42e49823c96b2536613c806f5399194b7b6c414 100644 (file)
@@ -157,9 +157,12 @@ class PageSearch
                                        # ignore symlinks, original contents only
                                        return FALSE;
                                }
+                               if ($current->isDir()) {
+                                       # traverse subdirectories unless untracked in any amount
+                                       return !file_exists("$current/.gitignore");
+                               }
                                # match **/*.html
-                               return $current->isDir()
-                                       || preg_match('/(?<!\.inc)\.html$/', $current->getFilename());
+                               return preg_match('/(?<!\.inc)\.html$/', $current->getFilename());
                        }
                );
        }