Fixup a few undefined variables and alike while checking REL1_17
authorSam Reed <reedy@users.mediawiki.org>
Mon, 4 Apr 2011 21:13:34 +0000 (21:13 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Mon, 4 Apr 2011 21:13:34 +0000 (21:13 +0000)
includes/Feed.php
includes/ImagePage.php
includes/api/ApiQueryImageInfo.php
includes/db/DatabaseIbm_db2.php
maintenance/checkUsernames.php

index 7938803..0ca419e 100644 (file)
@@ -101,7 +101,7 @@ class FeedItem {
         */
        public function setUniqueId($uniqueId, $RSSisPermalink = false) {
                $this->UniqueId = $uniqueId;
-               $this->RSSIsPermalink = $isPermalink;
+               $this->RSSIsPermalink = $RSSisPermalink;
        }
 
        /**
index 3d059ca..176c97d 100644 (file)
@@ -535,8 +535,6 @@ EOT
         * @param int $height
         */
        private function makeSizeLink( $params, $width, $height ) {
-               global $wgLang;
-               
                $params['width'] = $width;
                $params['height'] = $height;
                $thumbnail = $this->displayImg->transform( $params );
index c3cce33..7714305 100644 (file)
@@ -107,7 +107,7 @@ class ApiQueryImageInfo extends ApiQueryBase {
                                        }
                                        break;
                                }
-                               
+
                                // Check if we can make the requested thumbnail, and get transform parameters.
                                $finalThumbParams = $this->mergeThumbParams( $img, $scale, $params['urlparam'] );
 
@@ -119,7 +119,7 @@ class ApiQueryImageInfo extends ApiQueryBase {
                                        ( is_null( $params['end'] ) || $img->getTimestamp() >= $params['end'] )
                                ) {
                                        $gotOne = true;
-                                       
+
                                        $fit = $this->addPageSubItem( $pageId,
                                                self::getInfo( $img, $prop, $result, $finalThumbParams ) );
                                        if ( !$fit ) {
@@ -383,7 +383,7 @@ class ApiQueryImageInfo extends ApiQueryBase {
                if ( $mime ) {
                        $vals['mime'] = $file->getMimeType();
                }
-               
+
                if ( $mediatype ) {
                        $vals['mediatype'] = $file->getMediaType();
                }
index 810b823..3eb06cb 100644 (file)
@@ -932,7 +932,7 @@ EOF;
                                $overhead = "SAVEPOINT $ignore ON ROLLBACK RETAIN CURSORS";
                                db2_exec( $this->mConn, $overhead, $this->mStmtOptions );
 
-                               $this->execute( $stmt, $row );
+                               $res2 = $this->execute( $stmt, $row );
 
                                if ( !$res2 ) {
                                        $this->installPrint( 'Last error:' );
index b368432..d6f9ca1 100644 (file)
@@ -45,7 +45,7 @@ class CheckUsernames extends Maintenance {
                foreach ( $res as $row ) {
                        if ( ! User::isValidUserName( $row->user_name ) ) {
                                $this->error( sprintf( "%s: %6d: '%s'\n", wfWikiID(), $row->user_id, $row->user_name ) );
-                               wfDebugLog( 'checkUsernames', $out );
+                               wfDebugLog( 'checkUsernames', $$row->user_name );
                        }
                }
        }