http://www.mediawiki.org/wiki/Special:Code/MediaWiki/82802
Revision: 82802
Author: reedy
Date: 2011-02-25 16:53:33 +0000 (Fri, 25 Feb 2011)
Log Message:
-----------
Commit stuff from my w/c
Remove white line
Make second if else if (they're opposites)
Modified Paths:
--------------
trunk/phase3/includes/api/ApiQueryImageInfo.php
trunk/phase3/includes/api/ApiQueryStashImageInfo.php
Modified: trunk/phase3/includes/api/ApiQueryImageInfo.php
===================================================================
--- trunk/phase3/includes/api/ApiQueryImageInfo.php 2011-02-25 16:38:23 UTC
(rev 82801)
+++ trunk/phase3/includes/api/ApiQueryImageInfo.php 2011-02-25 16:53:33 UTC
(rev 82802)
@@ -312,8 +312,7 @@
$thumbFile =
UnregisteredLocalFile::newFromPath( $mto->getPath(), false );
$vals['thumbmime'] =
$thumbFile->getMimeType();
}
- }
- if ( $mto && $mto->isError() ) {
+ } else if ( $mto && $mto->isError() ) {
$vals['thumberror'] = $mto->toText();
}
}
Modified: trunk/phase3/includes/api/ApiQueryStashImageInfo.php
===================================================================
--- trunk/phase3/includes/api/ApiQueryStashImageInfo.php 2011-02-25
16:38:23 UTC (rev 82801)
+++ trunk/phase3/includes/api/ApiQueryStashImageInfo.php 2011-02-25
16:53:33 UTC (rev 82802)
@@ -78,7 +78,6 @@
);
}
-
public function getAllowedParams() {
return array(
'sessionkey' => array(
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs