In FileBackendBase/FileBackend:
authorAaron Schulz <aaron@users.mediawiki.org>
Fri, 23 Dec 2011 18:59:39 +0000 (18:59 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Fri, 23 Dec 2011 18:59:39 +0000 (18:59 +0000)
commit875f8a28e938ced147ece1a663cd761c876be0d3
treef8ac39f8d4153f0d453adf825ea144fe61da66c0
parenta7da936d274c2c09d628742077f55a281a40a0fd
In FileBackendBase/FileBackend:
* Changed concatenate to store to a specified temp FS file rather than a final storage destination. This makes it better fit the use case (chunked upload), so we can avoid extra copying around. Subclasses no longer have to implement this function now as well.
* Added extensionFromPath() helper function.
* Moved createInternal() up a bit and fixed @see comments pointing to the wrong functions.
In FSFileBackend:
* Use parent implementation of doConcatenateInternal().
In FileRepo/File:
* Added FileRepo::ALLOW_STALE and made thumbnail transforms use it.
includes/filerepo/FileRepo.php
includes/filerepo/backend/FSFileBackend.php
includes/filerepo/backend/FileBackend.php
includes/filerepo/backend/FileOp.php
includes/filerepo/file/File.php
includes/upload/UploadFromChunks.php
tests/phpunit/includes/filerepo/FileBackendTest.php