From: Antoine Musso Date: Sun, 8 Jan 2006 13:49:01 +0000 (+0000) Subject: Bug 3835: add a cancel link on special:movepage X-Git-Tag: 1.6.0~688 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=5c05e4ef39de9984043f6c9381a100f9d01e9cfc;p=lhc%2Fweb%2Fwiklou.git Bug 3835: add a cancel link on special:movepage --- 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}