Index: trunk/phase3/includes/filerepo/backend/FSFileBackend.php |
— | — | @@ -22,14 +22,6 @@ |
23 | 23 | * @since 1.19 |
24 | 24 | */ |
25 | 25 | class FSFileBackend extends FileBackend { |
26 | | - |
27 | | - /** |
28 | | - * These constants are the same as the ones in FilesystemIterator, but |
29 | | - * that's only 5.3+ so copy them here. When we drop 5.2 we can remove this |
30 | | - */ |
31 | | - const CURRENT_AS_FILEINFO = 0; |
32 | | - const SKIP_DOTS = 4096; |
33 | | - |
34 | 26 | protected $basePath; // string; directory holding the container directories |
35 | 27 | /** @var Array Map of container names to root paths */ |
36 | 28 | protected $containerPaths = array(); // for custom container paths |
— | — | @@ -556,7 +548,7 @@ |
557 | 549 | $dir = realpath( $dir ); // normalize |
558 | 550 | $this->suffixStart = strlen( $dir ) + 1; // size of "path/to/dir/" |
559 | 551 | try { |
560 | | - $flags = self::CURRENT_AS_FILEINFO | self::SKIP_DOTS; |
| 552 | + $flags = FilesystemIterator::CURRENT_AS_FILEINFO | FilesystemIterator::SKIP_DOTS; |
561 | 553 | $this->iter = new RecursiveIteratorIterator( |
562 | 554 | new RecursiveDirectoryIterator( $dir, $flags ) ); |
563 | 555 | } catch ( UnexpectedValueException $e ) { |