MediaWiki
master
InterwikiLogFormatter.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Logging
;
4
5
use
MediaWiki\Message\Message
;
6
12
class
InterwikiLogFormatter
extends
LogFormatter
{
17
protected
function
getMessageParameters
() {
18
$params = parent::getMessageParameters();
19
// Needed to pass the URL as a raw parameter, because it contains $1
20
if
( isset( $params[4] ) ) {
21
$params[4] =
Message::rawParam
( htmlspecialchars( $params[4] ) );
22
}
23
return
$params;
24
}
25
}
26
28
class_alias( InterwikiLogFormatter::class,
'InterwikiLogFormatter'
);
MediaWiki\Logging\InterwikiLogFormatter
LogFormatter for interwiki/* logs.
Definition
InterwikiLogFormatter.php:12
MediaWiki\Logging\InterwikiLogFormatter\getMessageParameters
getMessageParameters()
Definition
InterwikiLogFormatter.php:17
MediaWiki\Logging\LogFormatter
Implements the default log formatting.
Definition
LogFormatter.php:49
MediaWiki\Message\Message
The Message class deals with fetching and processing of interface message into a variety of formats.
Definition
Message.php:144
MediaWiki\Message\Message\rawParam
static rawParam( $raw)
Definition
Message.php:1220
MediaWiki\Logging
Definition
BlockLogFormatter.php:11
includes
Logging
InterwikiLogFormatter.php
Generated on Mon Nov 17 2025 03:25:43 for MediaWiki by
1.10.0