From b74934a6f31615f9281eb9341dd7db32b7da3ec4 Mon Sep 17 00:00:00 2001 From: Ilmari Karonen Date: Sat, 13 Dec 2008 04:35:48 +0000 Subject: [PATCH] Remove parameter from FileRepo::findFiles(), it was fubar and nobody was using it anyway. (What we really need is some way to pass timestamps to that function, which probably requires further rethinking of the interface.) --- includes/filerepo/FileRepo.php | 4 ++-- includes/filerepo/LocalRepo.php | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/includes/filerepo/FileRepo.php b/includes/filerepo/FileRepo.php index fdd9757c97..1f2a4cd882 100644 --- a/includes/filerepo/FileRepo.php +++ b/includes/filerepo/FileRepo.php @@ -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; } diff --git a/includes/filerepo/LocalRepo.php b/includes/filerepo/LocalRepo.php index ee03e32de9..5eb1a11cc2 100644 --- a/includes/filerepo/LocalRepo.php +++ b/includes/filerepo/LocalRepo.php @@ -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. -- 2.20.1