From: Niklas Laxström Date: Thu, 1 Mar 2012 10:42:02 +0000 (+0000) Subject: Restore many missing spaces from r112589 X-Git-Tag: 1.31.0-rc.0~24451 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=4d9492771582730e0acfce1616222891cc867b44;p=lhc%2Fweb%2Fwiklou.git Restore many missing spaces from r112589 Also fixed indentation by spaces And please don't ever use != ''. It's misleading. --- diff --git a/includes/ChangesList.php b/includes/ChangesList.php index 3966e30fb2..e0183c4c5a 100644 --- a/includes/ChangesList.php +++ b/includes/ChangesList.php @@ -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 . ''; 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(), diff --git a/includes/actions/HistoryAction.php b/includes/actions/HistoryAction.php index 4c57e03fce..c5b865211f 100644 --- a/includes/actions/HistoryAction.php +++ b/includes/actions/HistoryAction.php @@ -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