X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flogging%2FPatrolLogFormatter.php;h=e02a7037a9cb1199e4976c332623c691835879c9;hb=3bd96b883843816ab2e3eca75a0b65163ff594b0;hp=bbd8badc8aa2241e710727b1f2df71c566a0941f;hpb=fb44a171b20b1ca832b93c8d788070fc6b13d932;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 ); }