mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-12 09:09:25 +00:00
Pass empty summary to parseAndStash() to avoid warnings
Since the summary is not known yet, using "" is fine. Bug: T137995 Change-Id: I0ef2a6cbe3ffc9be249bfea5e4172159c57698a2
This commit is contained in:
parent
57dd56591d
commit
eee86a9873
|
@ -140,7 +140,7 @@ class ApiVisualEditor extends ApiBase {
|
|||
$page = WikiPage::factory( $title );
|
||||
$content = ContentHandler::makeContent( $text, $title, CONTENT_MODEL_WIKITEXT );
|
||||
|
||||
$status = ApiStashEdit::parseAndStash( $page, $content, $this->getUser() );
|
||||
$status = ApiStashEdit::parseAndStash( $page, $content, $this->getUser(), '' );
|
||||
if ( $status === ApiStashEdit::ERROR_NONE ) {
|
||||
wfDebugLog( 'StashEdit', "Cached parser output for VE content key '$key'." );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue