http://www.mediawiki.org/wiki/Special:Code/MediaWiki/82914
Revision: 82914
Author: reedy
Date: 2011-02-27 21:11:45 +0000 (Sun, 27 Feb 2011)
Log Message:
-----------
Tweak documentation
Fix constant use in UploadTest
Modified Paths:
--------------
trunk/phase3/includes/filerepo/FileRepo.php
trunk/phase3/includes/upload/UploadBase.php
trunk/phase3/tests/phpunit/includes/UploadTest.php
Modified: trunk/phase3/includes/filerepo/FileRepo.php
===================================================================
--- trunk/phase3/includes/filerepo/FileRepo.php 2011-02-27 21:10:11 UTC (rev
82913)
+++ trunk/phase3/includes/filerepo/FileRepo.php 2011-02-27 21:11:45 UTC (rev
82914)
@@ -701,6 +701,8 @@
/**
* Get an UploadStash associated with this repo.
+ *
+ * @return UploadStash
*/
function getUploadStash() {
return new UploadStash( $this );
Modified: trunk/phase3/includes/upload/UploadBase.php
===================================================================
--- trunk/phase3/includes/upload/UploadBase.php 2011-02-27 21:10:11 UTC (rev
82913)
+++ trunk/phase3/includes/upload/UploadBase.php 2011-02-27 21:11:45 UTC (rev
82914)
@@ -707,7 +707,7 @@
* API request to find this stashed file again.
*
* @param $key String: (optional) the session key used to find the file
info again. If not supplied, a key will be autogenerated.
- * @return File stashed file
+ * @return UploadStashFile stashed file
*/
public function stashSessionFile( $key = null ) {
$stash =
RepoGroup::singleton()->getLocalRepo()->getUploadStash();
Modified: trunk/phase3/tests/phpunit/includes/UploadTest.php
===================================================================
--- trunk/phase3/tests/phpunit/includes/UploadTest.php 2011-02-27 21:10:11 UTC
(rev 82913)
+++ trunk/phase3/tests/phpunit/includes/UploadTest.php 2011-02-27 21:11:45 UTC
(rev 82914)
@@ -106,7 +106,7 @@
unlink( $filename );
$this->assertEquals(
- array( 'status' => UploadTestHandler::OK ), $result );
+ array( 'status' => UploadBase::OK ), $result );
$wgMaxUploadSize = $savedGlobal; // restore global
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs