Visual diffs: Use new wgDiffOldId/wgDiffNewId

This also removes an undeclared dependency on mediawiki.Uri.

Bug: T169574
Depends-On: Ic4abaae6e9c74509f7a114a697cdbb78dd1b89b6
Change-Id: I76803da5f1a52171a1af8de1f3e31ea127a2da78
This commit is contained in:
Bartosz Dziewoński 2017-07-03 23:23:52 +02:00
parent baf1908b99
commit 6123b452da

View file

@ -36,8 +36,8 @@
var oldRevPromise, newRevPromise, modulePromise, progress,
$revSlider = $( '.mw-revslider-container' ),
$wikitextDiff = $( 'table.diff[data-mw="interface"]' ),
oldId = +( new mw.Uri() ).query.oldid,
newId = mw.config.get( 'wgRevisionId' );
oldId = mw.config.get( 'wgDiffOldId' ),
newId = mw.config.get( 'wgDiffNewId' );
mode = item.getData();