* Added FileRepo::SKIP_LOCKING constant and made storeBatch() check it.
authorAaron Schulz <aaron@users.mediawiki.org>
Wed, 21 Dec 2011 20:39:50 +0000 (20:39 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Wed, 21 Dec 2011 20:39:50 +0000 (20:39 +0000)
commitb5a7c0e957b789e927ce593cd9021ff15a027109
treee7de172c2dd2d0b20481b5fe934525b0ed490464
parent970e9e3b5c94fa7082cabd4e421db2a55ecc2d7d
* Added FileRepo::SKIP_LOCKING constant and made storeBatch() check it.
* Made File::maybeDoTransform() use the FileRepo::store() and a new File::getThumbRel() function. Looks cleaner and loosens FileBackend coupling.
* Also made storeTemp() use FileRepo::SKIP_LOCKING for performance.
* Killed some useless initZones() calls in FileRepo. Extensions may not even use these zones. Likewise, it could make tests fail even though they don't those zones. We already do the sanity with some prepare() calls in storeBatch().
* Removed FileRepo::SKIP_VALIDATION, not used by anything now.
* Moved getUrlRel() down a bit.
includes/filerepo/FileRepo.php
includes/filerepo/file/File.php