Remove parameter from FileRepo::findFiles(), it was fubar and nobody was using it...
authorIlmari Karonen <vyznev@users.mediawiki.org>
Sat, 13 Dec 2008 04:35:48 +0000 (04:35 +0000)
committerIlmari Karonen <vyznev@users.mediawiki.org>
Sat, 13 Dec 2008 04:35:48 +0000 (04:35 +0000)
includes/filerepo/FileRepo.php
includes/filerepo/LocalRepo.php

index fdd9757..1f2a4cd 100644 (file)
@@ -133,10 +133,10 @@ abstract class FileRepo {
         * @param array $titles, an array of titles
         * @param int $flags
         */
-       function findFiles( $titles, $flags ) {
+       function findFiles( $titles ) {
                $result = array();
                foreach ( $titles as $index => $title ) {
-                       $file = $this->findFile( $title, $flags );
+                       $file = $this->findFile( $title );
                        if ( $file )
                                $result[$file->getTitle()->getDBkey()] = $file;
                }
index ee03e32..5eb1a11 100644 (file)
@@ -164,8 +164,7 @@ class LocalRepo extends FSRepo {
        /*
         * Find many files using one query
         */
-       function findFiles( $titles, $flags ) {
-               // FIXME: Comply with $flags
+       function findFiles( $titles ) {
                // FIXME: Only accepts a $titles array where the keys are the sanitized
                // file names.