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=d19826aa35b206847a568a4b2c1c9ffaa615fca5;hpb=47b93ded1388ce5712d0a816db4ddd3466609bcd 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 ); }