From: Amir E. Aharoni Date: Thu, 3 Jul 2014 14:53:41 +0000 (+0300) Subject: Add ids to the old link and the new link at the move result X-Git-Tag: 1.31.0-rc.0~15106^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=dabf3219d6a8bce7ed51d11e38078fbd436ca97e;p=lhc%2Fweb%2Fwiklou.git 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 --- 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();