From: Chad Horohoe Date: Fri, 27 Jan 2012 14:29:29 +0000 (+0000) Subject: Copy FilesystemIterator constants so we can still pretend to support 5.2 X-Git-Tag: 1.31.0-rc.0~25061 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=a119dd5e71f5476955570f140bc3acd77bd364d7;p=lhc%2Fweb%2Fwiklou.git Copy FilesystemIterator constants so we can still pretend to support 5.2 --- 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 ) {