From 6123b452da499ce149341e66277d8cc4adcf72b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= Date: Mon, 3 Jul 2017 23:23:52 +0200 Subject: [PATCH] Visual diffs: Use new wgDiffOldId/wgDiffNewId This also removes an undeclared dependency on mediawiki.Uri. Bug: T169574 Depends-On: Ic4abaae6e9c74509f7a114a697cdbb78dd1b89b6 Change-Id: I76803da5f1a52171a1af8de1f3e31ea127a2da78 --- modules/ve-mw/init/ve.init.mw.DiffPage.init.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ve-mw/init/ve.init.mw.DiffPage.init.js b/modules/ve-mw/init/ve.init.mw.DiffPage.init.js index 90a307d8e5..8ec60eb0e1 100644 --- a/modules/ve-mw/init/ve.init.mw.DiffPage.init.js +++ b/modules/ve-mw/init/ve.init.mw.DiffPage.init.js @@ -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();