mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 08:10:35 +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'];
|
||||
}
|
||||
|
||||
$wikitext = $params['wikitext'];
|
||||
if ( !$wikitext ) {
|
||||
if ( isset( $params['wikitext'] ) ) {
|
||||
$wikitext = $params['wikitext'];
|
||||
} else {
|
||||
$wikitext = $this->getWikitext( $title, $params, $parserParams );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue