Restore many missing spaces from r112589
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Thu, 1 Mar 2012 10:42:02 +0000 (10:42 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Thu, 1 Mar 2012 10:42:02 +0000 (10:42 +0000)
Also fixed indentation by spaces
And please don't ever use != ''. It's misleading.

includes/ChangesList.php
includes/actions/HistoryAction.php

index 3966e30..e0183c4 100644 (file)
@@ -894,7 +894,7 @@ class EnhancedChangesList extends ChangesList {
                }
                # Total change link
                $r .= ' ';
-                $logtext = '';
+               $logtext = '';
                if( !$allLogs ) {
                        if( !ChangesList::userCan( $rcObj, Revision::DELETED_TEXT, $this->getUser() ) ) {
                                $logtext .= $nchanges[$n];
@@ -933,7 +933,7 @@ class EnhancedChangesList extends ChangesList {
                                );
                }
 
-               if( $logtext != '' ) {
+               if( $logtext !== '' ) {
                        $r .= $this->msg( 'parentheses' )->rawParams( $logtext )->escaped();
                }
 
@@ -1008,7 +1008,7 @@ class EnhancedChangesList extends ChangesList {
                        $r .= $link . '</span>';
 
                        if ( !$type == RC_LOG || $type == RC_NEW ) {
-                               $r .= $this->msg( 'parentheses' )->rawParams( $rcObj->curlink . $this->message['pipe-separator'] . $rcObj->lastlink )->escaped();
+                               $r .= ' ' . $this->msg( 'parentheses' )->rawParams( $rcObj->curlink . $this->message['pipe-separator'] . $rcObj->lastlink )->escaped();
                        }
                        $r .= ' . . ';
 
@@ -1134,7 +1134,7 @@ class EnhancedChangesList extends ChangesList {
                # Diff and hist links
                if ( $type != RC_LOG ) {
                        $query['action'] = 'history';
-                       $r .= $this->msg( 'parentheses' )->rawParams( $rcObj->difflink . $this->message['pipe-separator'] . Linker::linkKnown(
+                       $r .= ' ' . $this->msg( 'parentheses' )->rawParams( $rcObj->difflink . $this->message['pipe-separator'] . Linker::linkKnown(
                                $rcObj->getTitle(),
                                $this->message['hist'],
                                array(),
index 4c57e03..c5b8652 100644 (file)
@@ -619,7 +619,7 @@ class HistoryPager extends ReverseChronologicalPager {
                }
 
                if ( $tools ) {
-                       $s .= $this->msg( 'parentheses' )->rawParams( $lang->pipeList( $tools ) )->escaped();
+                       $s .= ' '. $this->msg( 'parentheses' )->rawParams( $lang->pipeList( $tools ) )->escaped();
                }
 
                # Tags