https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112572

Revision: 112572
Author:   tstarling
Date:     2012-02-28 02:57:47 +0000 (Tue, 28 Feb 2012)
Log Message:
-----------
MFT r112569: fix fatal error on [[Special:MovePage]]

Modified Paths:
--------------
    branches/wmf/1.19wmf1/includes/specials/SpecialMovepage.php

Property Changed:
----------------
    branches/wmf/1.19wmf1/includes/specials/SpecialMovepage.php

Modified: branches/wmf/1.19wmf1/includes/specials/SpecialMovepage.php
===================================================================
--- branches/wmf/1.19wmf1/includes/specials/SpecialMovepage.php 2012-02-28 
02:57:26 UTC (rev 112571)
+++ branches/wmf/1.19wmf1/includes/specials/SpecialMovepage.php 2012-02-28 
02:57:47 UTC (rev 112572)
@@ -55,6 +55,13 @@
                $oldTitleText = $request->getVal( 'wpOldTitle', $target );
                $this->oldTitle = Title::newFromText( $oldTitleText );
 
+               if( is_null( $this->oldTitle ) ) {
+                       throw new ErrorPageError( 'notargettitle', 
'notargettext' );
+               }
+               if( !$this->oldTitle->exists() ) {
+                       throw new ErrorPageError( 'nopagetitle', 'nopagetext' );
+               }
+
                $newTitleTextMain = $request->getText( 'wpNewTitleMain' );
                $newTitleTextNs = $request->getInt( 'wpNewTitleNs', 
$this->oldTitle->getNamespace() );
                // Backwards compatibility for forms submitting here from other 
sources
@@ -64,12 +71,6 @@
                        ? Title::newFromText( $newTitleText_bc )
                        : Title::makeTitleSafe( $newTitleTextNs, 
$newTitleTextMain );
 
-               if( is_null( $this->oldTitle ) ) {
-                       throw new ErrorPageError( 'notargettitle', 
'notargettext' );
-               }
-               if( !$this->oldTitle->exists() ) {
-                       throw new ErrorPageError( 'nopagetitle', 'nopagetext' );
-               }
 
                $user = $this->getUser();
 


Property changes on: branches/wmf/1.19wmf1/includes/specials/SpecialMovepage.php
___________________________________________________________________
Added: svn:mergeinfo
   + /branches/JSTesting/includes/specials/SpecialMovepage.php:100352-107913
/branches/REL1_15/phase3/includes/specials/SpecialMovepage.php:51646
/branches/sqlite/includes/specials/SpecialMovepage.php:58211-58321
/branches/wmf-deployment/includes/specials/SpecialMovepage.php:53381,56967
/trunk/phase3/includes/specials/SpecialMovepage.php:111085,111128,111144,111251,112569


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to