mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-12 09:09:25 +00:00
ApiVisualEditor: Stop an undefined variable error for preload on existing pages
Bug: T176440 Change-Id: I39c8efe6d59948170b848730c4cc20c80cc2d326
This commit is contained in:
parent
dcbe6d0dd5
commit
05bd8c19c8
|
@ -566,7 +566,7 @@ class ApiVisualEditor extends ApiBase {
|
|||
];
|
||||
if ( $params['paction'] === 'parse' ||
|
||||
$params['paction'] === 'wikitext' ||
|
||||
$params['preload']
|
||||
( $params['preload'] && $content )
|
||||
) {
|
||||
$result['content'] = $content;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue