* Per my CR comments on r44560: merged FileCache into RepoGroup and fixed wfFindFile...
authorTim Starling <tstarling@users.mediawiki.org>
Sat, 15 Aug 2009 09:59:59 +0000 (09:59 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sat, 15 Aug 2009 09:59:59 +0000 (09:59 +0000)
commit831b6d2bf7b62fbae44d09b0a257b731c58d8d5b
treef259b6d4bbbc3eb699c9f615bc1b008c95d50647
parent84b6a177f163f66fad8abec3c999d7e5d9358724
* Per my CR comments on r44560: merged FileCache into RepoGroup and fixed wfFindFile() global function bloat. Did not port unused functions such as the batch loading functions.
* Fixed the formal parameter bloat in the file finding functions by making wfFindFile(), RepoGroup::findFile() and FileRepo::findFile() take an associative array of options instead of a rapidly growing collection of formal parameters. Maintained backwards compatibility for the $time parameter, which was the only one used in an extension.
* Took the advice of the todo comment on FileRepo::findFiles() and implemented a calling convention for specifying times (and other options)
* Removed the file object cache from Parser, redundant with the RepoGroup file cache
* Deleted clueless and non-functional LocalRepo::findFiles(). Does not respect redirects, deletion bitfields, or anything else nuanced about FileRepo::findFile(). Does not have the same calling convention as FileRepo::findFiles().
12 files changed:
includes/AutoLoader.php
includes/GlobalFunctions.php
includes/ImageGallery.php
includes/Linker.php
includes/api/ApiDelete.php
includes/filerepo/FileCache.php [deleted file]
includes/filerepo/FileRepo.php
includes/filerepo/Image.php
includes/filerepo/LocalRepo.php
includes/filerepo/NullRepo.php
includes/filerepo/RepoGroup.php
includes/parser/Parser.php