$key = parent::getMessageKey();
$params = $this->getMessageParameters();
if ( isset( $params[5] ) && $params[5] ) {
+ // Messages: logentry-patrol-patrol-auto
$key .= '-auto';
}
if ( $this->plaintext ) {
$revlink = $revision;
} elseif ( $target->exists() ) {
- $query = array(
+ $query = [
'oldid' => $oldid,
'diff' => 'prev'
- );
- $revlink = Linker::link( $target, htmlspecialchars( $revision ), array(), $query );
+ ];
+ $revlink = Linker::link( $target, htmlspecialchars( $revision ), [], $query );
} else {
$revlink = htmlspecialchars( $revision );
}
$entry = $this->entry;
$params = $entry->getParameters();
- static $map = array(
- '4::curid',
- '5::previd',
+ static $map = [
+ '4:number:curid',
+ '5:number:previd',
'6:bool:auto',
+ '4::curid' => '4:number:curid',
+ '5::previd' => '5:number:previd',
'6::auto' => '6:bool:auto',
- );
+ ];
foreach ( $map as $index => $key ) {
if ( isset( $params[$index] ) ) {
$params[$key] = $params[$index];