Fixup to r64197 per http://www.mediawiki.org/wiki/Special:Code/MediaWiki/64197#c6451
authorSam Reed <reedy@users.mediawiki.org>
Wed, 7 Apr 2010 08:56:43 +0000 (08:56 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Wed, 7 Apr 2010 08:56:43 +0000 (08:56 +0000)
Pass $fromTitle rather than $titleObj (which is undefined)

includes/api/ApiBase.php
includes/api/ApiMove.php

index 21875de..7abfb9e 100644 (file)
@@ -534,6 +534,7 @@ abstract class ApiBase {
 
                return $mValidNamespaces;
        }
+
        /**
        * Handle watchlist settings
        */
index 603ef59..4647859 100644 (file)
@@ -123,7 +123,7 @@ class ApiMove extends ApiBase {
                }
                
                // Watch pages
-               $watch = $this->getWatchlistValue( $params['watchlist'], $titleObj ) || $wgUser->getOption( 'watchmoves' );
+               $watch = $this->getWatchlistValue( $params['watchlist'], $fromTitle ) || $wgUser->getOption( 'watchmoves' );
                
                // Deprecated parameters
                if ( $params['watch'] ) {