}
/*
- * Find many files at once
+ * Find many files at once. Removes the corresponding titles
+ * of files that are found from $titles.
+ * @param array $titles, an array of titles
+ * @param int $flags
*/
- function findFiles( &$titles, $time = false, $flags ) {
+ function findFiles( &$titles, $flags ) {
$result = array();
foreach ( $titles as $index => $title ) {
$file = $this->findFile( $title );
return $result;
}
- function findFiles( &$titles, $time = false, $flags ) {
+ function findFiles( &$titles, $flags ) {
if ( count( $titles ) == 0 ) return array();
$dbKeys = array();
}
return false;
}
- function findFiles( $titles, $time = false, $flags = 0 ) {
+ function findFiles( $titles, $flags = 0 ) {
if ( !$this->reposInitialised ) {
$this->initialiseRepos();
}
- $images = $this->localRepo->findFiles( $titles, $time, $flags );
+ $images = $this->localRepo->findFiles( $titles, $flags );
foreach ( $this->foreignRepos as $repo ) {
- $images = array_merge( $images, $repo->findFiles( $titles, $time, $flags ) );
+ $images = array_merge( $images, $repo->findFiles( $titles, $flags ) );
}
return $images;
}