r75302 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r75301‎ | r75302 | r75303 >
Date:07:59, 24 October 2010
Author:ialex
Status:ok
Tags:
Comment:
Removed trailing whitespaces
Modified paths:
  • /trunk/phase3/includes/specials/SpecialMovepage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialMovepage.php
@@ -96,9 +96,9 @@
9797 /**
9898 * Show the form
9999 *
100 - * @param $err Mixed: error message. May either be a string message name or
101 - * array message name and parameters, like the second argument to
102 - * OutputPage::wrapWikiMsg().
 100+ * @param $err Mixed: error message. May either be a string message name or
 101+ * array message name and parameters, like the second argument to
 102+ * OutputPage::wrapWikiMsg().
103103 */
104104 function showForm( $err ) {
105105 global $wgOut, $wgUser, $wgContLang, $wgFixDoubleRedirects;
@@ -156,14 +156,14 @@
157157 $submitVar = 'wpMoveOverSharedFile';
158158 $err = '';
159159 }
160 -
 160+
161161 $oldTalk = $this->oldTitle->getTalkPage();
162162 $considerTalk = ( !$this->oldTitle->isTalkPage() && $oldTalk->exists() );
163163
164164 $dbr = wfGetDB( DB_SLAVE );
165165 if ( $wgFixDoubleRedirects ) {
166 - $hasRedirects = $dbr->selectField( 'redirect', '1',
167 - array(
 166+ $hasRedirects = $dbr->selectField( 'redirect', '1',
 167+ array(
168168 'rd_namespace' => $this->oldTitle->getNamespace(),
169169 'rd_title' => $this->oldTitle->getDBkey(),
170170 ) , __METHOD__ );
@@ -253,7 +253,7 @@
254254 <tr>
255255 <td></td>
256256 <td class='mw-input' >" .
257 - Xml::checkLabel( wfMsg( 'move-leave-redirect' ), 'wpLeaveRedirect',
 257+ Xml::checkLabel( wfMsg( 'move-leave-redirect' ), 'wpLeaveRedirect',
258258 'wpLeaveRedirect', $this->leaveRedirect ) .
259259 "</td>
260260 </tr>"
@@ -265,7 +265,7 @@
266266 <tr>
267267 <td></td>
268268 <td class='mw-input' >" .
269 - Xml::checkLabel( wfMsg( 'fix-double-redirects' ), 'wpFixRedirects',
 269+ Xml::checkLabel( wfMsg( 'fix-double-redirects' ), 'wpFixRedirects',
270270 'wpFixRedirects', $this->fixRedirects ) .
271271 "</td>
272272 </tr>"
@@ -304,7 +304,7 @@
305305 );
306306 }
307307
308 - $watchChecked = $wgUser->isLoggedIn() && ($this->watch || $wgUser->getBoolOption( 'watchmoves' )
 308+ $watchChecked = $wgUser->isLoggedIn() && ($this->watch || $wgUser->getBoolOption( 'watchmoves' )
309309 || $this->oldTitle->userIsWatching());
310310 # Don't allow watching if user is not logged in
311311 if( $wgUser->isLoggedIn() ) {
@@ -317,7 +317,7 @@
318318 </tr>");
319319 }
320320
321 - $wgOut->addHTML( "
 321+ $wgOut->addHTML( "
322322 {$confirm}
323323 <tr>
324324 <td>&#160;</td>
@@ -378,16 +378,16 @@
379379 }
380380
381381 # Show a warning if the target file exists on a shared repo
382 - if ( $nt->getNamespace() == NS_FILE
 382+ if ( $nt->getNamespace() == NS_FILE
383383 && !( $this->moveOverShared && $wgUser->isAllowed( 'reupload-shared' ) )
384 - && !RepoGroup::singleton()->getLocalRepo()->findFile( $nt )
 384+ && !RepoGroup::singleton()->getLocalRepo()->findFile( $nt )
385385 && wfFindFile( $nt ) )
386386 {
387387 $this->showForm( array('file-exists-sharedrepo') );
388388 return;
389 -
 389+
390390 }
391 -
 391+
392392 if ( $wgUser->isAllowed( 'suppressredirect' ) ) {
393393 $createRedirect = $this->leaveRedirect;
394394 } else {
@@ -443,7 +443,7 @@
444444 # would mean that you couldn't move them back in one operation, which
445445 # is bad. FIXME: A specific error message should be given in this
446446 # case.
447 -
 447+
448448 // FIXME: Use Title::moveSubpages() here
449449 $dbr = wfGetDB( DB_MASTER );
450450 if( $this->moveSubpages && (
@@ -557,8 +557,8 @@
558558 $wgUser->removeWatch( $ot );
559559 $wgUser->removeWatch( $nt );
560560 }
561 -
562 - # Re-clear the file redirect cache, which may have been polluted by
 561+
 562+ # Re-clear the file redirect cache, which may have been polluted by
563563 # parsing in messages above. See CR r56745.
564564 # FIXME: needs a more robust solution inside FileRepo.
565565 if( $ot->getNamespace() == NS_FILE ) {

Status & tagging log