* 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. |
||
|---|---|---|
| .. | ||
| .htaccess | ||
| .svnignore | ||
| ArticleTest.php | ||
| DatabaseTest.php | ||
| GlobalTest.php | ||
| ImageFunctionsTest.php | ||
| LocalFileTest.php | ||
| Makefile | ||
| MediaWiki_TestCase.php | ||
| README | ||
| run-test.php | ||
| SanitizerTest.php | ||
| SearchEngineTest.php | ||
| SearchMySQL4Test.php | ||
| test-prefetch-current.xml | ||
| test-prefetch-previous.xml | ||
| test-prefetch-stub.xml | ||
Some quickie unit tests done with the PHPUnit testing framework. To run the test suite, run 'make test' in this dir or 'php RunTests.php' PHPUnit is no longer maintained by PEAR. To get the current version of PHPUnit, first uninstall any old version of PHPUnit or PHPUnit2 from PEAR, then install the current version from phpunit.de like this: # pear channel-discover pear.phpunit.de # pear install phpunit/PHPUnit