* @ingroup JobQueue
*/
+use MediaWiki\MediaWikiServices;
+
/**
* Job to fix double redirects after moving a page
*
}
// Check for a suppression tag (used e.g. in periodically archived discussions)
- $mw = MagicWord::get( 'staticredirect' );
+ $mw = MediaWikiServices::getInstance()->getMagicWordFactory()->get( 'staticredirect' );
if ( $content->matchMagicWord( $mw ) ) {
wfDebug( __METHOD__ . ": skipping: suppressed with __STATICREDIRECT__\n" );