From eee86a9873117dfc17cd43b53b411a626d9a50e0 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 16 Jun 2016 12:56:00 -0700 Subject: [PATCH] Pass empty summary to parseAndStash() to avoid warnings Since the summary is not known yet, using "" is fine. Bug: T137995 Change-Id: I0ef2a6cbe3ffc9be249bfea5e4172159c57698a2 --- ApiVisualEditor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ApiVisualEditor.php b/ApiVisualEditor.php index 5676b26de8..c5c863f4eb 100644 --- a/ApiVisualEditor.php +++ b/ApiVisualEditor.php @@ -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'." ); }