* Split off ultimate base class FileRepo from FSRepo
authorTim Starling <tstarling@users.mediawiki.org>
Sat, 16 Jun 2007 02:55:25 +0000 (02:55 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sat, 16 Jun 2007 02:55:25 +0000 (02:55 +0000)
commit85fa7504e68ea6a67cc7bb0b34de3dce2868f11f
tree60eb1fd39659d4d3ec49fe38adb99fa0bbb1034b
parent6f82fb146b41cde58e16cf2b8877d4e381a70431
* Split off ultimate base class FileRepo from FSRepo
* Use rawurlencode() for paths instead of urlencode()
* Moved functionality of LocalFile::loadFromFile() to a public static function. This allows Special:Upload to entirely avoid loading metadata from the (potentially remote) store. Changed purgeMetadataCache() to use loadFromDB() instead of loadFromFile().
* Redefined private virtual URLs, giving them a repo name component instead of a host.
* Moved is_writable($wgUploadDirectory) in SpecialUpload.php to the repo
* Added some filename validation to the FSRepo's store/publish
* Changed store and publish to use relative destinations instead of absolute, as was documented
* Deprecated File::recordUpload()! Now use upload() to do both publish and record. Moved the UI bits to SpecialUpload.
* Create a null revision on reupload
* Changed most of the member variable names in UploadForm. $this->mUpload followed by some ambiguous word or abbreviation was not a good naming convention. Also did some reformatting and assorted code cleanup.
13 files changed:
includes/AutoLoader.php
includes/DefaultSettings.php
includes/ImagePage.php
includes/LogPage.php
includes/SpecialUpload.php
includes/filerepo/FSRepo.php
includes/filerepo/File.php
includes/filerepo/FileRepo.php [new file with mode: 0644]
includes/filerepo/ForeignDBRepo.php
includes/filerepo/LocalFile.php
includes/filerepo/RepoGroup.php
includes/filerepo/UnregisteredLocalFile.php
tests/LocalFileTest.php