mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Interwiki
synced 2024-11-28 00:01:01 +00:00
65ed486c48
Change-Id: I19aa6cfe5ba23076167c0cb026c55342737b4be2
18 lines
379 B
PHP
18 lines
379 B
PHP
<?php
|
|
|
|
/**
|
|
* Needed to pass the URL as a raw parameter, because it contains $1
|
|
*/
|
|
class InterwikiLogFormatter extends LogFormatter {
|
|
/**
|
|
* @return array
|
|
*/
|
|
protected function getMessageParameters() {
|
|
$params = parent::getMessageParameters();
|
|
if ( isset( $params[4] ) ) {
|
|
$params[4] = Message::rawParam( htmlspecialchars( $params[4] ) );
|
|
}
|
|
return $params;
|
|
}
|
|
}
|