From 16c91533543ad47e87484dacf30f74aa93d1cbb2 Mon Sep 17 00:00:00 2001 From: Tobias Date: Fri, 12 Feb 2010 11:40:41 +0000 Subject: [PATCH] sort of fixing bug 14592: show warning when moving a user page that the user will not be renamed --- includes/specials/SpecialMovepage.php | 3 +++ languages/messages/MessagesEn.php | 1 + maintenance/language/messages.inc | 1 + 3 files changed, 5 insertions(+) diff --git a/includes/specials/SpecialMovepage.php b/includes/specials/SpecialMovepage.php index 8899614a68..eb8f50f981 100644 --- a/includes/specials/SpecialMovepage.php +++ b/includes/specials/SpecialMovepage.php @@ -131,6 +131,9 @@ class MovePageForm { "; $err = ''; } else { + if ($this->oldTitle->getNamespace() == NS_USER && !$this->oldTitle->isSubpage() ) { + $wgOut->addWikiMsg( 'moveuserpage-warning' ); + } $wgOut->addWikiMsg( 'movepagetext' ); $movepagebtn = wfMsg( 'movepagebtn' ); $submitVar = 'wpMove'; diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index f1598523f6..f43dda4e33 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -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.', diff --git a/maintenance/language/messages.inc b/maintenance/language/messages.inc index 50d5ed5bb6..53ad91c536 100644 --- a/maintenance/language/messages.inc +++ b/maintenance/language/messages.inc @@ -2034,6 +2034,7 @@ $wgMessageStructure = array( 'movepagetext', 'movepagetalktext', 'movearticle', + 'moveuserpage-warning', 'movenologin', 'movenologintext', 'movenotallowed', -- 2.20.1