mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ReplaceText
synced 2024-11-15 02:53:52 +00:00
Replace uses of old deprecated SpecialPageFactory
Extension requires 1.32+, so version isn't an issue Bug: T246142 Change-Id: I5642d3781af5b366389f3fc4fc359989f6f9dbd8
This commit is contained in:
parent
c681e92498
commit
66853b88db
|
@ -20,6 +20,8 @@
|
|||
* @file
|
||||
*/
|
||||
|
||||
use MediaWiki\MediaWikiServices;
|
||||
|
||||
class ReplaceTextHooks {
|
||||
|
||||
/**
|
||||
|
@ -58,7 +60,8 @@ class ReplaceTextHooks {
|
|||
*/
|
||||
public static function replaceTextReminder( &$form, &$ot, &$nt ) {
|
||||
$out = $form->getOutput();
|
||||
$page = SpecialPageFactory::getPage( 'ReplaceText' );
|
||||
$page = MediaWikiServices::getInstance()->getSpecialPageFactory()
|
||||
->getPage( 'ReplaceText' );
|
||||
$pageLink = ReplaceTextUtils::link( $page->getPageTitle() );
|
||||
$out->addHTML( $form->msg( 'replacetext_reminder' )
|
||||
->rawParams( $pageLink )->inContentLanguage()->parseAsBlock() );
|
||||
|
|
Loading…
Reference in a new issue