From a7294b34c087e0fbff5039cf9a019db212ef7362 Mon Sep 17 00:00:00 2001 From: Alex Monk Date: Mon, 17 Nov 2014 01:24:54 +0000 Subject: [PATCH] Stop warnings about calling FlaggablePageView::setPageContent with no parameters We don't care. Bug: 73469 Change-Id: I2ff0ec2fd1b0d34c1168f83d808c1cb498b17511 --- ApiVisualEditorEdit.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ApiVisualEditorEdit.php b/ApiVisualEditorEdit.php index e21e134b4b..1d71aefa93 100644 --- a/ApiVisualEditorEdit.php +++ b/ApiVisualEditorEdit.php @@ -139,7 +139,11 @@ class ApiVisualEditorEdit extends ApiVisualEditor { ) + $this->getRequest()->getValues() ) ); - $view->setPageContent(); + // The two parameters here are references but we don't care + // about what FlaggedRevs does with them. + $outputDone = null; + $useParserCache = null; + $view->setPageContent( $outputDone, $useParserCache ); $view->displayTag(); } $result['contentSub'] = $this->getOutput()->getSubtitle();