Update wgRevisionId when we change wgCurRevisionId

Bug: 56532
Change-Id: Ibb5a92d66a7a60ef516d3ef385b4473919a6ac63
This commit is contained in:
Krenair 2014-04-19 17:58:12 +01:00
parent 1236387abd
commit 167a2f341e

View file

@ -417,7 +417,10 @@ ve.init.mw.ViewPageTarget.prototype.onSave = function ( html, categoriesHtml, ne
this.restoring = false;
if ( newid !== undefined ) {
mw.config.set( 'wgCurRevisionId', newid );
mw.config.set( {
'wgCurRevisionId': newid,
'wgRevisionId': newid
} );
this.revid = newid;
}
this.saveDialog.close();