http://www.mediawiki.org/wiki/Special:Code/MediaWiki/82881
Revision: 82881
Author: reedy
Date: 2011-02-27 00:40:06 +0000 (Sun, 27 Feb 2011)
Log Message:
-----------
Tweak some documentation
Add some braces
Explicitally define a variable
Modified Paths:
--------------
trunk/phase3/includes/UserMailer.php
trunk/phase3/includes/api/ApiQueryImageInfo.php
trunk/phase3/includes/api/ApiQueryProtectedTitles.php
Modified: trunk/phase3/includes/UserMailer.php
===================================================================
--- trunk/phase3/includes/UserMailer.php 2011-02-27 00:36:10 UTC (rev
82880)
+++ trunk/phase3/includes/UserMailer.php 2011-02-27 00:40:06 UTC (rev
82881)
@@ -114,6 +114,7 @@
global $wgEnotifMaxRecips, $wgAdditionalMailParams;
if ( is_array( $to ) ) {
+ $emails = '';
// This wouldn't be necessary if implode() worked on
arrays of
// objects using __toString().
http://bugs.php.net/bug.php?id=36612
foreach ( $to as $t ) {
Modified: trunk/phase3/includes/api/ApiQueryImageInfo.php
===================================================================
--- trunk/phase3/includes/api/ApiQueryImageInfo.php 2011-02-27 00:36:10 UTC
(rev 82880)
+++ trunk/phase3/includes/api/ApiQueryImageInfo.php 2011-02-27 00:40:06 UTC
(rev 82881)
@@ -219,7 +219,9 @@
* @return Array of parameters for transform.
*/
protected function mergeThumbParams ( $image, $thumbParams,
$otherParams ) {
- if ( !$otherParams ) return $thumbParams;
+ if ( !$otherParams ) {
+ return $thumbParams;
+ }
$p = $this->getModulePrefix();
$h = $image->getHandler();
Modified: trunk/phase3/includes/api/ApiQueryProtectedTitles.php
===================================================================
--- trunk/phase3/includes/api/ApiQueryProtectedTitles.php 2011-02-27
00:36:10 UTC (rev 82880)
+++ trunk/phase3/includes/api/ApiQueryProtectedTitles.php 2011-02-27
00:40:06 UTC (rev 82881)
@@ -208,8 +208,8 @@
'prop' => array(
'Which properties to get',
' timestamp - Adds the timestamp of when
protection was added',
- ' user - Adds the user to add the
protection',
- ' userid - Adds the user id to add the
protection',
+ ' user - Adds the user that added the
protection',
+ ' userid - Adds the user id that added
the protection',
' comment - Adds the comment for the
protection',
' parsedcomment - Adds the parsed comment for
the protection',
' expiry - Adds the timestamp of when
the protection will be lifted',
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs