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:
Aaron Schulz 2016-06-16 12:56:00 -07:00
parent 57dd56591d
commit eee86a9873

View file

@ -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'." );
}