X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/6c50820df359e22fd0aa9da49c11708aa50f8253..d780bb75d42fe6e8c12f5e7fc82b50f005b37e92:/article.inc.php?ds=inline diff --git a/article.inc.php b/article.inc.php index 6fcb640..541d35e 100644 --- a/article.inc.php +++ b/article.inc.php @@ -35,7 +35,7 @@ class ArchiveArticle } @list ($this->preface, $this->title, $this->body) = - preg_split('{
\s* (.*?)
}sx', $this->raw, $bodyp)) { return $bodyp[1]; } @@ -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('/(?getFilename()); + return preg_match('/(?getFilename()); } ); }