Merge "ApiVisualEditor: Stop an undefined variable error for preload on existing pages"

This commit is contained in:
jenkins-bot 2017-09-21 21:29:50 +00:00 committed by Gerrit Code Review
commit 9dc3e46f38

View file

@ -566,7 +566,7 @@ class ApiVisualEditor extends ApiBase {
]; ];
if ( $params['paction'] === 'parse' || if ( $params['paction'] === 'parse' ||
$params['paction'] === 'wikitext' || $params['paction'] === 'wikitext' ||
$params['preload'] ( $params['preload'] && $content )
) { ) {
$result['content'] = $content; $result['content'] = $content;
} }