Followup to r44525: remove the broken $flags parameter from RepoGroup::findFiles...
authorIlmari Karonen <vyznev@users.mediawiki.org>
Sun, 14 Dec 2008 03:43:10 +0000 (03:43 +0000)
committerIlmari Karonen <vyznev@users.mediawiki.org>
Sun, 14 Dec 2008 03:43:10 +0000 (03:43 +0000)
includes/filerepo/RepoGroup.php

index 4fa4a03..2303f58 100644 (file)
@@ -82,7 +82,7 @@ class RepoGroup {
                }
                return false;
        }
-       function findFiles( $titles, $flags = 0 ) {
+       function findFiles( $titles ) {
                if ( !$this->reposInitialised ) {
                        $this->initialiseRepos();
                }
@@ -95,7 +95,7 @@ class RepoGroup {
                                $titleObjs[$title->getDBkey()] = $title;
                }
 
-               $images = $this->localRepo->findFiles( $titleObjs, $flags );
+               $images = $this->localRepo->findFiles( $titleObjs );
 
                foreach ( $this->foreignRepos as $repo ) {
                        // Remove found files from $titleObjs
@@ -103,7 +103,7 @@ class RepoGroup {
                                if ( isset( $titleObjs[$name] ) )
                                        unset( $titleObjs[$name] );
                        
-                       $images = array_merge( $images, $repo->findFiles( $titleObjs, $flags ) );
+                       $images = array_merge( $images, $repo->findFiles( $titleObjs ) );
                }
                return $images;
        }