mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 16:44:51 +00:00
Merge "ApiVisualEditorEditor#postData: Use isset on oldid post param"
This commit is contained in:
commit
679addb9d6
|
@ -183,11 +183,8 @@ class ApiVisualEditorEdit extends ApiVisualEditor {
|
|||
}
|
||||
|
||||
protected function postData( $path, $title, $data, $parserParams, $etag ) {
|
||||
if ( $parserParams['oldid'] === 0 ) {
|
||||
$parserParams['oldid'] = '';
|
||||
}
|
||||
$path .= urlencode( $title->getPrefixedDBkey() );
|
||||
if ( $parserParams['oldid'] ) {
|
||||
if ( isset( $parserParams['oldid'] ) && $parserParams['oldid'] ) {
|
||||
$path .= '/' . $parserParams['oldid'];
|
||||
}
|
||||
return $this->requestRestbase(
|
||||
|
|
Loading…
Reference in a new issue