* @ingroup Content
*/
+use MediaWiki\MediaWikiServices;
+
/**
* Content handler for wiki text pages.
*
}
}
- $mwRedir = MagicWord::get( 'redirect' );
+ $mwRedir = MediaWikiServices::getInstance()->getMagicWordFactory()->get( 'redirect' );
$redirectText = $mwRedir->getSynonym( 0 ) .
' [[' . $optionalColon . $destination->getFullText() . ']]';