Merge "Tell the client whether we created a redirect or not properly."

This commit is contained in:
jenkins-bot 2016-06-29 16:16:54 +00:00 committed by Gerrit Code Review
commit 472e960c90

View file

@ -190,7 +190,7 @@ class ApiVisualEditorEdit extends ApiVisualEditor {
$this->dieUsage( 'Error contacting the Parsoid/RESTBase server', 'docserver' );
}
$result['isRedirect'] = $title->isRedirect();
$result['isRedirect'] = (string) $title->isRedirect();
if ( class_exists( 'FlaggablePageView' ) ) {
$view = FlaggablePageView::singleton();