mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Merge "Allow 'wikitext' to be an empty string in save API"
This commit is contained in:
commit
42bc9f39bd
|
@ -261,8 +261,9 @@ class ApiVisualEditorEdit extends ApiVisualEditor {
|
||||||
$parserParams['oldid'] = $params['oldid'];
|
$parserParams['oldid'] = $params['oldid'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$wikitext = $params['wikitext'];
|
if ( isset( $params['wikitext'] ) ) {
|
||||||
if ( !$wikitext ) {
|
$wikitext = $params['wikitext'];
|
||||||
|
} else {
|
||||||
$wikitext = $this->getWikitext( $title, $params, $parserParams );
|
$wikitext = $this->getWikitext( $title, $params, $parserParams );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue