From dabf3219d6a8bce7ed51d11e38078fbd436ca97e Mon Sep 17 00:00:00 2001 From: "Amir E. Aharoni" Date: Thu, 3 Jul 2014 17:53:41 +0300 Subject: [PATCH] Add ids to the old link and the new link at the move result This is immediately useful for building a GuidedTour for moving a page, and can be useful for other things as well. Change-Id: I2765248f61ecd3089a9f4e06571a378e39ec1db3 --- includes/specials/SpecialMovepage.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/includes/specials/SpecialMovepage.php b/includes/specials/SpecialMovepage.php index dce5ad95c2..7223efd69b 100644 --- a/includes/specials/SpecialMovepage.php +++ b/includes/specials/SpecialMovepage.php @@ -567,10 +567,14 @@ class MovePageForm extends UnlistedSpecialPage { $oldLink = Linker::link( $ot, null, - array(), + array( 'id' => 'movepage-oldlink' ), array( 'redirect' => 'no' ) ); - $newLink = Linker::linkKnown( $nt ); + $newLink = Linker::linkKnown( + $nt, + null, + array( 'id' => 'movepage-newlink' ) + ); $oldText = $ot->getPrefixedText(); $newText = $nt->getPrefixedText(); -- 2.20.1