X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Flogging%2FProtectLogFormatter.php;h=64ec62693595e3f6d4fb9ff4fe4a198d73228337;hp=9e5eea54ca126cfda09817bddb41fd9773b605b8;hb=f73f2b320d8fe1eb03f78671584d455a2ff9f292;hpb=d19826aa35b206847a568a4b2c1c9ffaa615fca5 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