From 5c05e4ef39de9984043f6c9381a100f9d01e9cfc Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sun, 8 Jan 2006 13:49:01 +0000 Subject: [PATCH] Bug 3835: add a cancel link on special:movepage --- RELEASE-NOTES | 1 + includes/SpecialMovepage.php | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 3d14fbb0e6..212d7dec0e 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -286,6 +286,7 @@ Special Pages: * (bug 4359) red [[user:#id]] links generated in [[special:Log]] * (bug 1996) Special page to list redirects * (bug 4334) Add "watch" links to Special:Unwatchedpages +* (bug 3835) Add a 'Cancel' backlink on Special:Movepage Misc.: * PHP 4.1 compatibility fix: don't use new_link parameter to mysql_connect diff --git a/includes/SpecialMovepage.php b/includes/SpecialMovepage.php index bfc2af9b79..6dff709819 100644 --- a/includes/SpecialMovepage.php +++ b/includes/SpecialMovepage.php @@ -116,6 +116,9 @@ class MovePageForm { $movetalk = wfMsgHtml( 'movetalk' ); $movereason = wfMsgHtml( 'movereason' ); + $sk =& $wgUser->getSkin(); + $cancel = $sk->makeKnownLink( $oldTitle, wfMsg('cancel') ); + $titleObj = Title::makeTitle( NS_SPECIAL, 'Movepage' ); $action = $titleObj->escapeLocalURL( 'action=submit' ); $token = htmlspecialchars( $wgUser->editToken() ); @@ -163,6 +166,7 @@ class MovePageForm {   + {$cancel} -- 2.20.1