mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 03:08:42 +00:00
Merge "Fix 2017WTE change tag for edits that blank the page"
This commit is contained in:
commit
3e3a84f9b6
|
@ -429,7 +429,7 @@ class ApiVisualEditorEdit extends ApiVisualEditor {
|
|||
if ( $this->veConfig->get( 'VisualEditorUseChangeTagging' ) ) {
|
||||
// Defer till after the RC row is inserted
|
||||
// @TODO: doEditContent should let callers specify desired tags
|
||||
$tag = $params['wikitext'] ? 'visualeditor-wikitext' : 'visualeditor';
|
||||
$tag = isset( $params['wikitext'] ) ? 'visualeditor-wikitext' : 'visualeditor';
|
||||
DeferredUpdates::addCallableUpdate( function () use ( $tag, $newRevId ) {
|
||||
ChangeTags::addTags( $tag, null, $newRevId, null );
|
||||
} );
|
||||
|
|
Loading…
Reference in a new issue