https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112788
Revision: 112788
Author: nikerabbit
Date: 2012-03-01 10:42:02 +0000 (Thu, 01 Mar 2012)
Log Message:
-----------
Restore many missing spaces from r112589
Also fixed indentation by spaces
And please don't ever use != ''. It's misleading.
Modified Paths:
--------------
trunk/phase3/includes/ChangesList.php
trunk/phase3/includes/actions/HistoryAction.php
Modified: trunk/phase3/includes/ChangesList.php
===================================================================
--- trunk/phase3/includes/ChangesList.php 2012-03-01 10:33:57 UTC (rev
112787)
+++ trunk/phase3/includes/ChangesList.php 2012-03-01 10:42:02 UTC (rev
112788)
@@ -894,7 +894,7 @@
}
# Total change link
$r .= ' ';
- $logtext = '';
+ $logtext = '';
if( !$allLogs ) {
if( !ChangesList::userCan( $rcObj,
Revision::DELETED_TEXT, $this->getUser() ) ) {
$logtext .= $nchanges[$n];
@@ -933,7 +933,7 @@
);
}
- if( $logtext != '' ) {
+ if( $logtext !== '' ) {
$r .= $this->msg( 'parentheses' )->rawParams( $logtext
)->escaped();
}
@@ -1008,7 +1008,7 @@
$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 @@
# 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(),
Modified: trunk/phase3/includes/actions/HistoryAction.php
===================================================================
--- trunk/phase3/includes/actions/HistoryAction.php 2012-03-01 10:33:57 UTC
(rev 112787)
+++ trunk/phase3/includes/actions/HistoryAction.php 2012-03-01 10:42:02 UTC
(rev 112788)
@@ -619,7 +619,7 @@
}
if ( $tools ) {
- $s .= $this->msg( 'parentheses' )->rawParams(
$lang->pipeList( $tools ) )->escaped();
+ $s .= ' '. $this->msg( 'parentheses' )->rawParams(
$lang->pipeList( $tools ) )->escaped();
}
# Tags
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs