Merge "Replace usage of deprecated Page in favor of WikiPage/Article"

This commit is contained in:
jenkins-bot 2020-03-19 10:18:22 +00:00 committed by Gerrit Code Review
commit eca42bfe0b

View file

@ -1586,23 +1586,6 @@ class AbuseFilter {
return $display;
}
/**
* @deprecated Use VariableGenerator::addEditVars
* @param Title $title
* @param WikiPage|\Article|null $page
* @return AbuseFilterVariableHolder
*/
public static function getEditVars( Title $title, object $page = null ) {
if ( $page !== null && !$page instanceof WikiPage ) {
$page = $page->getPage();
}
$vars = new AbuseFilterVariableHolder();
$generator = new VariableGenerator( $vars );
return $generator->addEditVars( $title, $page )->getVariableHolder();
}
/**
* @param AbuseFilterVariableHolder|array $vars
* @param IContextSource $context