Revert r77297, Won't be reverting MimeMagic
authorSam Reed <reedy@users.mediawiki.org>
Thu, 25 Nov 2010 22:22:53 +0000 (22:22 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Thu, 25 Nov 2010 22:22:53 +0000 (22:22 +0000)
Mainly whitespace reverts here

includes/EditPage.php
includes/HistoryPage.php
includes/ImagePage.php
includes/WatchlistEditor.php
includes/db/DatabasePostgres.php
maintenance/tests/phpunit/includes/api/RandomImageGenerator.php

index b878c6d..1182ef7 100644 (file)
@@ -2232,7 +2232,9 @@ HTML
 
                $script = '';
                foreach ( $toolarray as $tool ) {
-                       if ( !$tool ) continue;
+                       if ( !$tool ) {
+                               continue;
+                       }
 
                        $params = array(
                                $image = $wgStylePath . '/common/images/' . $tool['image'],
index d45d08c..88a8ee4 100644 (file)
@@ -538,7 +538,9 @@ class HistoryPager extends ReverseChronologicalPager {
                                        $rev->isDeleted( Revision::DELETED_RESTRICTED ), false );
                        }
                }
-               if( $del ) $s .= " $del ";
+               if ( $del ) {
+                       $s .= " $del ";
+               }
 
                $s .= " $link";
                $s .= " <span class='history-user'>" .
index 24999eb..a1b204f 100644 (file)
@@ -331,8 +331,6 @@ class ImagePage extends Article {
                        $height_orig = $this->displayImg->getHeight( $page );
                        $height = $height_orig;
 
-                       $showLink = false;
-                       $linkAttribs = array( 'href' => $full_url );
                        $longDesc = $this->displayImg->getLongDesc();
 
                        wfRunHooks( 'ImageOpenShowImageInlineBefore', array( &$this, &$wgOut ) );
@@ -1011,6 +1009,7 @@ class ImageHistoryList {
                }
                $row .= '</td>';
 
+               $rowClass = null;
                wfRunHooks( 'ImagePageFileHistoryLine', array( $this, $file, &$row, &$rowClass ) );
                $classAttr = $rowClass ? " class='$rowClass'" : "";
 
index 8850d26..dda1b4a 100644 (file)
@@ -347,7 +347,8 @@ class WatchlistEditor {
         */
        private function showNormalForm( $output, $user ) {
                global $wgUser;
-               if( ( $count = $this->showItemCount( $output, $user ) ) > 0 ) {
+               $count = $this->showItemCount( $output, $user );
+               if( $count > 0 ) {
                        $self = SpecialPage::getTitleFor( 'Watchlist' );
                        $form  = Xml::openElement( 'form', array( 'method' => 'post',
                                'action' => $self->getLocalUrl( array( 'action' => 'edit' ) ) ) );
index 79816c2..ecf67de 100644 (file)
@@ -751,7 +751,6 @@ class DatabasePostgres extends DatabaseBase {
                        return true;
                }
                return false;
-
        }
 
        /**
index 8602196..f544a71 100644 (file)
@@ -203,6 +203,7 @@ class RandomImageGenerator {
                $args[] = $filename;
 
                $command = wfEscapeShellArg( $wgImageMagickConvertCommand ) . " " . implode( " ", $args );
+               $retval = null;
                $output = wfShellExec( $command, $retval );
                return ( $retval === 0 );
        }