Bug 3835: add a cancel link on special:movepage
authorAntoine Musso <hashar@users.mediawiki.org>
Sun, 8 Jan 2006 13:49:01 +0000 (13:49 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sun, 8 Jan 2006 13:49:01 +0000 (13:49 +0000)
RELEASE-NOTES
includes/SpecialMovepage.php

index 3d14fbb..212d7de 100644 (file)
@@ -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
index bfc2af9..6dff709 100644 (file)
@@ -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 {
                        <td>&nbsp;</td>
                        <td align='left'>
                                <input type='submit' name=\"{$submitVar}\" value=\"{$movepagebtn}\" />
+                               {$cancel}
                        </td>
                </tr>
        </table>