mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-15 10:15:24 +00:00
Merge "Replace usage of deprecated Page in favor of WikiPage/Article"
This commit is contained in:
commit
eca42bfe0b
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue