From a119dd5e71f5476955570f140bc3acd77bd364d7 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Fri, 27 Jan 2012 14:29:29 +0000 Subject: [PATCH] Copy FilesystemIterator constants so we can still pretend to support 5.2 --- includes/filerepo/backend/FSFileBackend.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/includes/filerepo/backend/FSFileBackend.php b/includes/filerepo/backend/FSFileBackend.php index 6a9b3059e6..d0ff92c3f2 100644 --- a/includes/filerepo/backend/FSFileBackend.php +++ b/includes/filerepo/backend/FSFileBackend.php @@ -22,6 +22,14 @@ gsuffixStart = strlen( $dir ) + 1; // size of "path/to/dir/" try { - $flags = FilesystemIterator::CURRENT_AS_FILEINFO | FilesystemIterator::SKIP_DOTS; + $flags = self::CURRENT_AS_FILEINFO | self::SKIP_DOTS; $this->iter = new RecursiveIteratorIterator( new RecursiveDirectoryIterator( $dir, $flags ) ); } catch ( UnexpectedValueException $e ) { -- 2.20.1