Move SectionProfileCallback to its own file
[lhc/web/wiklou.git] / includes / logging / PatrolLogFormatter.php
index bbd8bad..e02a703 100644 (file)
  *
  * @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 );
                }