Add ids to the old link and the new link at the move result
authorAmir E. Aharoni <amir.aharoni@mail.huji.ac.il>
Thu, 3 Jul 2014 14:53:41 +0000 (17:53 +0300)
committerAmir E. Aharoni <amir.aharoni@mail.huji.ac.il>
Thu, 3 Jul 2014 14:53:41 +0000 (17:53 +0300)
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

index dce5ad9..7223efd 100644 (file)
@@ -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();