Tweak some documentation
authorSam Reed <reedy@users.mediawiki.org>
Sun, 27 Feb 2011 00:40:06 +0000 (00:40 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sun, 27 Feb 2011 00:40:06 +0000 (00:40 +0000)
Add some braces

Explicitally define a variable

includes/UserMailer.php
includes/api/ApiQueryImageInfo.php
includes/api/ApiQueryProtectedTitles.php

index 6b28c64..62ec6dc 100644 (file)
@@ -114,6 +114,7 @@ class UserMailer {
                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 ) {
index 341dd6c..7673f0a 100644 (file)
@@ -219,7 +219,9 @@ class ApiQueryImageInfo extends ApiQueryBase {
         * @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();
index a3f0119..66162c2 100644 (file)
@@ -208,8 +208,8 @@ class ApiQueryProtectedTitles extends ApiQueryGeneratorBase {
                        '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',