mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 00:00:49 +00:00
ApiVisualEditorEdit: Remove special handling for SpamBlacklist
No longer needed after Id36aa6bdb8f873fe7deb8123a7fc774103721c01, which teaches SpamBlacklist to return its own error messages. Depends-On: Id36aa6bdb8f873fe7deb8123a7fc774103721c01 Bug: T211443 Change-Id: I462c2002f9b596cbdfd7ce3673d4e362e5bd1aaf
This commit is contained in:
parent
b75eb54bec
commit
7c2e61d502
|
@ -407,13 +407,6 @@ class ApiVisualEditorEdit extends ApiVisualEditor {
|
|||
'edit' => $saveresult['edit']
|
||||
];
|
||||
|
||||
if ( isset( $saveresult['edit']['spamblacklist'] ) ) {
|
||||
$matches = explode( '|', $saveresult['edit']['spamblacklist'] );
|
||||
$matcheslist = $this->getLanguage()->listToText( $matches );
|
||||
$result['edit']['sberrorparsed'] = $this->msg( 'spamprotectiontext' )->parse() . ' ' .
|
||||
$this->msg( 'spamprotectionmatch', $matcheslist )->parse();
|
||||
}
|
||||
|
||||
// Success
|
||||
} else {
|
||||
if ( isset( $saveresult['edit']['newrevid'] ) ) {
|
||||
|
|
Loading…
Reference in a new issue