* @ingroup Actions
*/
+use MediaWiki\MediaWikiServices;
+
/**
* An action that just passes the request to the relevant special page
*
/**
* @var array A mapping of action names to special page names.
*/
- public static $actionToSpecialPageMapping = array(
+ public static $actionToSpecialPageMapping = [
'revisiondelete' => 'Revisiondelete',
'editchangetags' => 'EditTags',
- );
+ ];
public function getName() {
$request = $this->getRequest();
}
// map actions to (whitelisted) special pages
- return SpecialPageFactory::getPage( self::$actionToSpecialPageMapping[$action] );
+ return MediaWikiServices::getInstance()->getSpecialPageFactory()->
+ getPage( self::$actionToSpecialPageMapping[$action] );
}
}