*
* @file
*/
+use MediaWiki\MediaWikiServices;
/**
* Handles the page protection UI and backend
$out .= Xml::closeElement( 'fieldset' );
if ( $user->isAllowed( 'editinterface' ) ) {
- $link = Linker::linkKnown(
+ $linkRenderer = MediaWikiServices::getInstance()->getLinkRenderer();
+ $link = $linkRenderer->makeKnownLink(
$context->msg( 'protect-dropdown' )->inContentLanguage()->getTitle(),
- $context->msg( 'protect-edit-reasonlist' )->escaped(),
+ $context->msg( 'protect-edit-reasonlist' )->text(),
[],
[ 'action' => 'edit' ]
);
/**
* Show protection long extracts for this page
*
- * @param OutputPage $out
+ * @param OutputPage &$out
* @access private
*/
function showLogExtract( &$out ) {