mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 06:03:49 +00:00
Remove dead code
Change-Id: I4f4065aeaf5b015679c28808be430f8af99d1294
This commit is contained in:
parent
717abf4300
commit
a4d3548d47
|
@ -243,32 +243,9 @@ class LazyVariableComputer {
|
|||
$result = preg_replace( $re, '', $newHTML );
|
||||
}
|
||||
self::$profilingExtraTime += ( microtime( true ) - $startTime );
|
||||
break;
|
||||
}
|
||||
|
||||
// Otherwise fall back to database
|
||||
$textVar = $parameters['wikitext-var'];
|
||||
|
||||
if ( $article->getContentModel() === CONTENT_MODEL_WIKITEXT ) {
|
||||
if ( isset( $parameters['pst'] ) && $parameters['pst'] ) {
|
||||
// $textVar is already PSTed when it's not loaded from an ongoing edit.
|
||||
$result = $getVarCB( $textVar )->toString();
|
||||
} else {
|
||||
$text = $getVarCB( $textVar )->toString();
|
||||
$editInfo = $this->parseNonEditWikitext(
|
||||
$text,
|
||||
$article,
|
||||
$parameters['contextUser']
|
||||
);
|
||||
$result = $editInfo->output->getText();
|
||||
}
|
||||
} else {
|
||||
// TODO: Parser Output from Content object. But we don't have the content object.
|
||||
// And for non-text content, $wikitext is usually not going to be a valid
|
||||
// serialization, but rather some dummy text for filtering.
|
||||
$result = '';
|
||||
}
|
||||
|
||||
break;
|
||||
case 'strip-html':
|
||||
$htmlVar = $parameters['html-var'];
|
||||
|
|
Loading…
Reference in a new issue