dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Use HTML::hidden to create input fields"
[lhc/web/wiklou.git]
/
includes
/
logging
/
PatrolLogFormatter.php
diff --git
a/includes/logging/PatrolLogFormatter.php
b/includes/logging/PatrolLogFormatter.php
index
e6f9fb6
..
bbd8bad
100644
(file)
--- a/
includes/logging/PatrolLogFormatter.php
+++ b/
includes/logging/PatrolLogFormatter.php
@@
-22,6
+22,7
@@
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
* @since 1.22
*/
* @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
* @since 1.22
*/
+use MediaWiki\MediaWikiServices;
/**
* This class formats patrol log entries.
/**
* This class formats patrol log entries.
@@
-30,11
+31,11
@@
*/
class PatrolLogFormatter extends LogFormatter {
protected function getMessageKey() {
*/
class PatrolLogFormatter extends LogFormatter {
protected function getMessageKey() {
- $key = parent::getMessageKey();
$params = $this->getMessageParameters();
if ( isset( $params[5] ) && $params[5] ) {
$params = $this->getMessageParameters();
if ( isset( $params[5] ) && $params[5] ) {
- // Messages: logentry-patrol-patrol-auto
- $key .= '-auto';
+ $key = 'logentry-patrol-patrol-auto';
+ } else {
+ $key = 'logentry-patrol-patrol';
}
return $key;
}
return $key;
@@
-54,7
+55,8
@@
class PatrolLogFormatter extends LogFormatter {
'oldid' => $oldid,
'diff' => 'prev'
];
'oldid' => $oldid,
'diff' => 'prev'
];
- $revlink = Linker::link( $target, htmlspecialchars( $revision ), [], $query );
+ $revlink = MediaWikiServices::getInstance()->getLinkRenderer()->makeLink(
+ $target, $revision, [], $query );
} else {
$revlink = htmlspecialchars( $revision );
}
} else {
$revlink = htmlspecialchars( $revision );
}