diff options
author | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2016-03-16 19:10:06 +0100 |
---|---|---|
committer | Tristan Darricau <tristan.darricau@sensiolabs.com> | 2016-03-16 19:10:06 +0100 |
commit | 0194c78d19425a0d54b690bed210eebf34cd9007 (patch) | |
tree | b4747fe08056e8f1fa3826002687c1ec1797edc7 | |
parent | f1874ec4167973df7d2eeed0e5bc2ed3f4a59c04 (diff) | |
parent | e610b239169d604d5b880d14140f7fe25b15c392 (diff) | |
download | forums-0194c78d19425a0d54b690bed210eebf34cd9007.tar forums-0194c78d19425a0d54b690bed210eebf34cd9007.tar.gz forums-0194c78d19425a0d54b690bed210eebf34cd9007.tar.bz2 forums-0194c78d19425a0d54b690bed210eebf34cd9007.tar.xz forums-0194c78d19425a0d54b690bed210eebf34cd9007.zip |
Merge pull request #4226 from rxu/ticket/14540
[ticket/14540] Adjust recursive_dot_prefix_filter_iterator for performance
* rxu/ticket/14540:
[ticket/14540] Adjust recursive_dot_prefix_filter_iterator for performance
-rw-r--r-- | phpBB/phpbb/recursive_dot_prefix_filter_iterator.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/recursive_dot_prefix_filter_iterator.php b/phpBB/phpbb/recursive_dot_prefix_filter_iterator.php index 2500ba0cf8..1446551b8b 100644 --- a/phpBB/phpbb/recursive_dot_prefix_filter_iterator.php +++ b/phpBB/phpbb/recursive_dot_prefix_filter_iterator.php @@ -25,6 +25,6 @@ class recursive_dot_prefix_filter_iterator extends \RecursiveFilterIterator public function accept() { $filename = $this->current()->getFilename(); - return !$this->current()->isDir() || $filename[0] !== '.'; + return $filename[0] !== '.' || !$this->current()->isDir(); } } |