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

Bug: T176440
Change-Id: I39c8efe6d59948170b848730c4cc20c80cc2d326
This commit is contained in:
David Lynch 2017-09-21 16:21:41 -05:00
parent dcbe6d0dd5
commit 05bd8c19c8

View file

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