*
* @file
*/
+use MediaWiki\MediaWikiServices;
/**
* Handles the page protection UI and backend
*
* @param string $action
*
- * @return string 14-char timestamp or "infinity", or false if the input was invalid
+ * @return string|false 14-char timestamp or "infinity", or false if the input was invalid
*/
function getExpiry( $action ) {
if ( $this->mExpirySelection[$action] == 'existing' ) {
$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' ]
);