Unset redirect param in MoveLogFormatter::getMessageParameters
The redirect param is used to get a different message key, so there is no need to pass it to the message, because the value is stable. 'logentry-move-move' always get a '0' and 'logentry-move-move-noredirect' always a '1' The value is only visible with uselang=qqx Change-Id: Ib6a3303e7401e29561165355b3611c3c123bfcd0
This commit is contained in:
parent
d7c023447f
commit
6af7983621
1 changed files with 3 additions and 1 deletions
|
|
@ -37,8 +37,9 @@ class MoveLogFormatter extends LogFormatter {
|
|||
|
||||
protected function getMessageKey() {
|
||||
$key = parent::getMessageKey();
|
||||
$params = $this->getMessageParameters();
|
||||
$params = $this->extractParameters();
|
||||
if ( isset( $params[4] ) && $params[4] === '1' ) {
|
||||
// Messages: logentry-move-move-noredirect, logentry-move-move_redir-noredirect
|
||||
$key .= '-noredirect';
|
||||
}
|
||||
|
||||
|
|
@ -51,6 +52,7 @@ class MoveLogFormatter extends LogFormatter {
|
|||
$newname = $this->makePageLink( Title::newFromText( $params[3] ) );
|
||||
$params[2] = Message::rawParam( $oldname );
|
||||
$params[3] = Message::rawParam( $newname );
|
||||
unset( $params[4] ); // handled in getMessageKey
|
||||
|
||||
return $params;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue