From e98e89099f1009ffbec7c4e7f015a6ec0918326a Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Fri, 27 Jan 2012 14:33:43 +0000 Subject: [PATCH] Self-revert r110124, needs more than that to support 5.2 since $flags don't exist in 5.2. Either this needs to be fixed to really support 5.2 or we'll bumping the minimum version to 5.3 this release. --- includes/filerepo/backend/FSFileBackend.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/includes/filerepo/backend/FSFileBackend.php b/includes/filerepo/backend/FSFileBackend.php index d0ff92c3f2..6a9b3059e6 100644 --- a/includes/filerepo/backend/FSFileBackend.php +++ b/includes/filerepo/backend/FSFileBackend.php @@ -22,14 +22,6 @@ gsuffixStart = strlen( $dir ) + 1; // size of "path/to/dir/" try { - $flags = self::CURRENT_AS_FILEINFO | self::SKIP_DOTS; + $flags = FilesystemIterator::CURRENT_AS_FILEINFO | FilesystemIterator::SKIP_DOTS; $this->iter = new RecursiveIteratorIterator( new RecursiveDirectoryIterator( $dir, $flags ) ); } catch ( UnexpectedValueException $e ) { -- 2.20.1