r77303 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r77302‎ | r77303 | r77304 >
Date:22:22, 25 November 2010
Author:reedy
Status:ok
Tags:
Comment:
Revert r77297, Won't be reverting MimeMagic

Mainly whitespace reverts here
Modified paths:
  • /trunk/phase3/includes/EditPage.php (modified) (history)
  • /trunk/phase3/includes/HistoryPage.php (modified) (history)
  • /trunk/phase3/includes/ImagePage.php (modified) (history)
  • /trunk/phase3/includes/WatchlistEditor.php (modified) (history)
  • /trunk/phase3/includes/db/DatabasePostgres.php (modified) (history)
  • /trunk/phase3/maintenance/tests/phpunit/includes/api/RandomImageGenerator.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/tests/phpunit/includes/api/RandomImageGenerator.php
@@ -203,6 +203,7 @@
204204 $args[] = $filename;
205205
206206 $command = wfEscapeShellArg( $wgImageMagickConvertCommand ) . " " . implode( " ", $args );
 207+ $retval = null;
207208 $output = wfShellExec( $command, $retval );
208209 return ( $retval === 0 );
209210 }
Index: trunk/phase3/includes/ImagePage.php
@@ -331,8 +331,6 @@
332332 $height_orig = $this->displayImg->getHeight( $page );
333333 $height = $height_orig;
334334
335 - $showLink = false;
336 - $linkAttribs = array( 'href' => $full_url );
337335 $longDesc = $this->displayImg->getLongDesc();
338336
339337 wfRunHooks( 'ImageOpenShowImageInlineBefore', array( &$this, &$wgOut ) );
@@ -1011,6 +1009,7 @@
10121010 }
10131011 $row .= '</td>';
10141012
 1013+ $rowClass = null;
10151014 wfRunHooks( 'ImagePageFileHistoryLine', array( $this, $file, &$row, &$rowClass ) );
10161015 $classAttr = $rowClass ? " class='$rowClass'" : "";
10171016
Index: trunk/phase3/includes/db/DatabasePostgres.php
@@ -751,7 +751,6 @@
752752 return true;
753753 }
754754 return false;
755 -
756755 }
757756
758757 /**
Index: trunk/phase3/includes/WatchlistEditor.php
@@ -347,7 +347,8 @@
348348 */
349349 private function showNormalForm( $output, $user ) {
350350 global $wgUser;
351 - if( ( $count = $this->showItemCount( $output, $user ) ) > 0 ) {
 351+ $count = $this->showItemCount( $output, $user );
 352+ if( $count > 0 ) {
352353 $self = SpecialPage::getTitleFor( 'Watchlist' );
353354 $form = Xml::openElement( 'form', array( 'method' => 'post',
354355 'action' => $self->getLocalUrl( array( 'action' => 'edit' ) ) ) );
Index: trunk/phase3/includes/EditPage.php
@@ -2232,7 +2232,9 @@
22332233
22342234 $script = '';
22352235 foreach ( $toolarray as $tool ) {
2236 - if ( !$tool ) continue;
 2236+ if ( !$tool ) {
 2237+ continue;
 2238+ }
22372239
22382240 $params = array(
22392241 $image = $wgStylePath . '/common/images/' . $tool['image'],
Index: trunk/phase3/includes/HistoryPage.php
@@ -538,7 +538,9 @@
539539 $rev->isDeleted( Revision::DELETED_RESTRICTED ), false );
540540 }
541541 }
542 - if( $del ) $s .= " $del ";
 542+ if ( $del ) {
 543+ $s .= " $del ";
 544+ }
543545
544546 $s .= " $link";
545547 $s .= " <span class='history-user'>" .

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r77297revert r76464...hashar20:01, 25 November 2010

Status & tagging log