sort of fixing bug 14592: show warning when moving a user page that the user will...
authorTobias <churchofemacs@users.mediawiki.org>
Fri, 12 Feb 2010 11:40:41 +0000 (11:40 +0000)
committerTobias <churchofemacs@users.mediawiki.org>
Fri, 12 Feb 2010 11:40:41 +0000 (11:40 +0000)
includes/specials/SpecialMovepage.php
languages/messages/MessagesEn.php
maintenance/language/messages.inc

index 8899614..eb8f50f 100644 (file)
@@ -131,6 +131,9 @@ class MovePageForm {
                                </tr>";
                        $err = '';
                } else {
+                       if ($this->oldTitle->getNamespace() == NS_USER && !$this->oldTitle->isSubpage() ) {
+                               $wgOut->addWikiMsg( 'moveuserpage-warning' );
+                       }
                        $wgOut->addWikiMsg( 'movepagetext' );
                        $movepagebtn = wfMsg( 'movepagebtn' );
                        $submitVar = 'wpMove';
index f159852..f43dda4 100644 (file)
@@ -3039,6 +3039,7 @@ please be sure you understand the consequences of this before proceeding.",
 
 In those cases, you will have to move or merge the page manually if desired.",
 'movearticle'                  => 'Move page:',
+'moveuserpage-warning'         => "'''Warning:''' You are about to move a user page. Please note that only the page will be moved and the user will ''not'' be renamed.",
 'movenologin'                  => 'Not logged in',
 'movenologintext'              => 'You must be a registered user and [[Special:UserLogin|logged in]] to move a page.',
 'movenotallowed'               => 'You do not have permission to move pages.',
index 50d5ed5..53ad91c 100644 (file)
@@ -2034,6 +2034,7 @@ $wgMessageStructure = array(
                'movepagetext',
                'movepagetalktext',
                'movearticle',
+               'moveuserpage-warning',
                'movenologin',
                'movenologintext',
                'movenotallowed',