[FileRepo] Various ForeignApiRepo fixes.
authorAaron <aschulz@wikimedia.org>
Thu, 3 May 2012 20:54:39 +0000 (13:54 -0700)
committerAaron <aschulz@wikimedia.org>
Thu, 3 May 2012 21:04:12 +0000 (14:04 -0700)
commit30befebf5d88c6028d685959d48e9312a5e78031
tree6236b29ec1874c0da3ee5c4c05937964fdb4d40d
parent240ac2341eb06d59014ca5867fb3d17ec2461378
[FileRepo] Various ForeignApiRepo fixes.

* Avoid using FileRepo functions to stat cache files as we override/hack
  fileExistsBatch(). Instead, use the FileBackend object directly.
* Adding missing prepare() call to unbreak thumbnail cache.
* Added a warning and sanity check for mwstore:// paths rather than appending them
  to URLs and shipping them off to Commons. This seem to be mostly gone now though.
* Removed useless error suppression calls that were broken due to a "return" statement.

Change-Id: Ie760f09e6bfa1752544cdb60018513ffc7823496
includes/filerepo/ForeignAPIRepo.php
includes/filerepo/backend/FileBackendGroup.php