Revision: 44525 Author: vyznev Date: 2008-12-13 04:35:48 +0000 (Sat, 13 Dec 2008)
Log Message: ----------- 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.) Modified Paths: -------------- trunk/phase3/includes/filerepo/FileRepo.php trunk/phase3/includes/filerepo/LocalRepo.php Modified: trunk/phase3/includes/filerepo/FileRepo.php =================================================================== --- trunk/phase3/includes/filerepo/FileRepo.php 2008-12-13 04:14:40 UTC (rev 44524) +++ trunk/phase3/includes/filerepo/FileRepo.php 2008-12-13 04:35:48 UTC (rev 44525) @@ -133,10 +133,10 @@ * @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; } Modified: trunk/phase3/includes/filerepo/LocalRepo.php =================================================================== --- trunk/phase3/includes/filerepo/LocalRepo.php 2008-12-13 04:14:40 UTC (rev 44524) +++ trunk/phase3/includes/filerepo/LocalRepo.php 2008-12-13 04:35:48 UTC (rev 44525) @@ -164,8 +164,7 @@ /* * 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. _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs