Migrate callers to new MWFileProps::getPropsFromPath() method
authorAaron Schulz <aschulz@wikimedia.org>
Mon, 19 Sep 2016 01:39:59 +0000 (18:39 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Thu, 22 Sep 2016 00:33:46 +0000 (00:33 +0000)
commitff5abb66b4a5109290d27de8b2a91b4ccd3a730c
treee30a8ba02fda94eee4dd5b1189c7c4b159e3eca7
parent5a3d42dbd86939a80d96f5033afdffbd520d729b
Migrate callers to new MWFileProps::getPropsFromPath() method

* FSFile should not be responsible for handling this much logic.
* Make more MediaHandler classes aware of the fact that an object
  other than File might be passed in. Use the FSFile instead of a
  useless empty stdClass object.
* Also added more fields to FSFile::placeholderProps to make it
  more complete.

Change-Id: I9fe764b2a7261af507c6555e6a57273cf7d00d36
24 files changed:
autoload.php
includes/MimeMagic.php
includes/filebackend/FSFile.php
includes/filerepo/FileRepo.php
includes/filerepo/RepoGroup.php
includes/filerepo/file/LocalFile.php
includes/media/BMP.php
includes/media/DjVu.php
includes/media/ExifBitmap.php
includes/media/MediaHandler.php
includes/media/PNG.php
includes/media/SVG.php
includes/media/Tiff.php
includes/media/WebP.php
includes/media/XCF.php
includes/upload/UploadBase.php
includes/upload/UploadStash.php
includes/utils/MWFileProps.php [new file with mode: 0644]
maintenance/importImages.php
tests/common/TestsAutoLoader.php
tests/parser/ParserTestRunner.php
tests/phpunit/MediaWikiTestCase.php
tests/phpunit/includes/media/MediaWikiMediaTestCase.php
tests/phpunit/mocks/filerepo/MockLocalRepo.php [new file with mode: 0644]