mediawiki-extensions-Interwiki/includes/InterwikiLogFormatter.php
Kunal Mehta 65ed486c48 Move classes into includes/
Change-Id: I19aa6cfe5ba23076167c0cb026c55342737b4be2
2018-02-24 13:41:07 -08:00

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;
}
}