X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Flogging%2FPatrolLogFormatter.php;h=bbd8badc8aa2241e710727b1f2df71c566a0941f;hp=5b933ce269651c631b15ca6eac439f68fb0475bb;hb=5049af1048c77b1ea6ab3193688d23a48ddf8df0;hpb=2c9f1db649a819805c379ccdda35c5f6e1c2423b diff --git a/includes/logging/PatrolLogFormatter.php b/includes/logging/PatrolLogFormatter.php index 5b933ce269..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. @@ -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 ); }