X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flogging%2FProtectLogFormatter.php;h=64ec62693595e3f6d4fb9ff4fe4a198d73228337;hb=0b9edb467bbe687ff4e29088a4e5f008770a07a8;hp=9e5eea54ca126cfda09817bddb41fd9773b605b8;hpb=313dde5d06c42be1eb7da9127ec92bb5d360ddab;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/logging/ProtectLogFormatter.php b/includes/logging/ProtectLogFormatter.php index 9e5eea54ca..64ec626935 100644 --- a/includes/logging/ProtectLogFormatter.php +++ b/includes/logging/ProtectLogFormatter.php @@ -21,7 +21,6 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later * @since 1.26 */ -use MediaWiki\MediaWikiServices; /** * This class formats protect log entries. @@ -78,7 +77,7 @@ class ProtectLogFormatter extends LogFormatter { } public function getActionLinks() { - $linkRenderer = MediaWikiServices::getInstance()->getLinkRenderer(); + $linkRenderer = $this->getLinkRenderer(); $subtype = $this->entry->getSubtype(); if ( $this->entry->isDeleted( LogPage::DELETED_ACTION ) // Action is hidden || $subtype === 'move_prot' // the move log entry has the right action link