diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-06-09 21:23:42 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-06-09 21:23:42 -0700 |
commit | 6556ca88339c78824f3de64c85a57e30a679431c (patch) | |
tree | 2a904add574418c20a4f75d90111da83aab48feb /modules | |
parent | aff0f6eca85e1a9aec83e13c29746f58010a56f6 (diff) |
In GalleryCodeFilterIterator::accept(), ignore . and .., and stop caring about .svn
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gallery/tests/Gallery_Filters.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/gallery/tests/Gallery_Filters.php b/modules/gallery/tests/Gallery_Filters.php index 4e32553b..debbe846 100644 --- a/modules/gallery/tests/Gallery_Filters.php +++ b/modules/gallery/tests/Gallery_Filters.php @@ -28,8 +28,10 @@ class GalleryCodeFilterIterator extends FilterIterator { public function accept() { // Skip anything that we didn"t write $path_name = $this->getInnerIterator()->getPathName(); + $file_name = $this->getInnerIterator()->getFileName(); return !( - strpos($path_name, ".svn") || + $file_name == "." || + $file_name == ".." || strpos($path_name, DOCROOT . "test") !== false || strpos($path_name, DOCROOT . "var") !== false || strpos($path_name, MODPATH . "forge") !== false || |