(bug 18161) Fix inconsistent separators in watchlist link toolbars with "enhanced recent changes"

This commit is contained in:
Raimond Spekking 2009-07-21 11:18:27 +00:00
parent 4a3e0b8df9
commit 135e87fb3e
2 changed files with 8 additions and 5 deletions

View file

@ -308,6 +308,9 @@ this. Was used when mwEmbed was going to be an extension.
* (bug 15745) The edit summary link parser now handles mismatched brackets
better
* (bug 19839) Comments in log items are no more double escaped
* (bug 19839) Comments in log items are no more double escaped
* (bug 18161) Fix inconsistent separators in watchlist link toolbars with
"enhanced recent changes"
== API changes in 1.16 ==

View file

@ -69,7 +69,7 @@ class ChangesList {
private function preCacheMessages() {
if( !isset( $this->message ) ) {
foreach( explode(' ', 'cur diff hist minoreditletter newpageletter last '.
'blocklink history boteditletter semicolon-separator' ) as $msg ) {
'blocklink history boteditletter semicolon-separator pipe-separator' ) as $msg ) {
$this->message[$msg] = wfMsgExt( $msg, array( 'escapenoentities' ) );
}
}
@ -832,12 +832,12 @@ class EnhancedChangesList extends ChangesList {
if( $allLogs ) {
// don't show history link for logs
} else if( $namehidden || !$block[0]->getTitle()->exists() ) {
$r .= $this->message['semicolon-separator'] . $this->message['hist'] . ')';
$r .= $this->message['pipe-separator'] . $this->message['hist'] . ')';
} else {
$params = $queryParams;
$params['action'] = 'history';
$r .= $this->message['semicolon-separator'] .
$r .= $this->message['pipe-separator'] .
$this->skin->link(
$block[0]->getTitle(),
$this->message['hist'],
@ -925,7 +925,7 @@ class EnhancedChangesList extends ChangesList {
if ( !$rc_type == RC_LOG || $rc_type == RC_NEW ) {
$r .= ' (';
$r .= $rcObj->curlink;
$r .= $this->message['semicolon-separator'];
$r .= $this->message['pipe-separator'];
$r .= $rcObj->lastlink;
$r .= ')';
}
@ -1050,7 +1050,7 @@ class EnhancedChangesList extends ChangesList {
}
# Diff and hist links
if ( $rc_type != RC_LOG ) {
$r .= ' ('. $rcObj->difflink . $this->message['semicolon-separator'];
$r .= ' ('. $rcObj->difflink . $this->message['pipe-separator'];
$query['action'] = 'history';
$r .= $this->skin->link(
$rcObj->getTitle(),