X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Flogging%2FProtectLogFormatter.php;h=931829ab2017ab81b0d688971ced6b97a3e8c7e0;hb=22012ab27e026d5e092c0aa0d893feff0f0ee36f;hp=9e5eea54ca126cfda09817bddb41fd9773b605b8;hpb=08e0ed2b70ba5986a96c701f84a7679c98a6f2fd;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/logging/ProtectLogFormatter.php b/includes/logging/ProtectLogFormatter.php index 9e5eea54ca..931829ab20 100644 --- a/includes/logging/ProtectLogFormatter.php +++ b/includes/logging/ProtectLogFormatter.php @@ -18,10 +18,9 @@ * http://www.gnu.org/copyleft/gpl.html * * @file - * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later + * @license GPL-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