X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flogging%2FPatrolLogFormatter.php;h=e02a7037a9cb1199e4976c332623c691835879c9;hb=50ea56e349d62c48c69c22bbdf91514c7a9e77e1;hp=bbd8badc8aa2241e710727b1f2df71c566a0941f;hpb=75e693d5a4d80a9e12ccffd3c7074e279432d9d7;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/logging/PatrolLogFormatter.php b/includes/logging/PatrolLogFormatter.php index bbd8badc8a..e02a7037a9 100644 --- a/includes/logging/PatrolLogFormatter.php +++ b/includes/logging/PatrolLogFormatter.php @@ -19,10 +19,9 @@ * * @file * @author Niklas Laxström - * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later + * @license GPL-2.0-or-later * @since 1.22 */ -use MediaWiki\MediaWikiServices; /** * This class formats patrol log entries. @@ -55,8 +54,7 @@ class PatrolLogFormatter extends LogFormatter { 'oldid' => $oldid, 'diff' => 'prev' ]; - $revlink = MediaWikiServices::getInstance()->getLinkRenderer()->makeLink( - $target, $revision, [], $query ); + $revlink = $this->getLinkRenderer()->makeLink( $target, $revision, [], $query ); } else { $revlink = htmlspecialchars( $revision ); }