mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-26 07:15:32 +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