X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/6c50820df359e22fd0aa9da49c11708aa50f8253..7718ed271465c8cd292f3b1d916e743db26d4ccd:/article.inc.php
diff --git a/article.inc.php b/article.inc.php
index 6fcb640..ea958fa 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*}', $this->raw, 2, PREG_SPLIT_DELIM_CAPTURE);
+ preg_split('{(.*?)
\s*}s', $this->raw, 2, PREG_SPLIT_DELIM_CAPTURE);
}
}
@@ -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());
}
);
}