}
return false;
}
- function findFiles( $titles, $flags = 0 ) {
+ function findFiles( $titles ) {
if ( !$this->reposInitialised ) {
$this->initialiseRepos();
}
$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
if ( isset( $titleObjs[$name] ) )
unset( $titleObjs[$name] );
- $images = array_merge( $images, $repo->findFiles( $titleObjs, $flags ) );
+ $images = array_merge( $images, $repo->findFiles( $titleObjs ) );
}
return $images;
}