X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flogging%2FPatrolLogFormatter.php;h=bbd8badc8aa2241e710727b1f2df71c566a0941f;hb=24ebca2251f94a20acee53e583d65aa7fac2c15d;hp=e6f9fb64cd3ebe4e773ee9ac809904af61038b07;hpb=9fe2ba22f722a7e335f912a4db3c06b4613ba58a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/logging/PatrolLogFormatter.php b/includes/logging/PatrolLogFormatter.php index e6f9fb64cd..bbd8badc8a 100644 --- 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 */ +use MediaWiki\MediaWikiServices; /** * This class formats patrol log entries. @@ -30,11 +31,11 @@ */ class PatrolLogFormatter extends LogFormatter { protected function getMessageKey() { - $key = parent::getMessageKey(); $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; @@ -54,7 +55,8 @@ class PatrolLogFormatter extends LogFormatter { 'oldid' => $oldid, 'diff' => 'prev' ]; - $revlink = Linker::link( $target, htmlspecialchars( $revision ), [], $query ); + $revlink = MediaWikiServices::getInstance()->getLinkRenderer()->makeLink( + $target, $revision, [], $query ); } else { $revlink = htmlspecialchars( $revision ); }