mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-12 09:09:25 +00:00
Merge "ApiVisualEditor: Stop an undefined variable error for preload on existing pages"
This commit is contained in:
commit
9dc3e46f38
|
@ -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