Index: trunk/phase3/includes/Title.php |
— | — | @@ -2303,6 +2303,11 @@ |
2304 | 2304 | if ( ! $this->isValidMoveTarget( $nt ) ) { |
2305 | 2305 | return 'articleexists'; |
2306 | 2306 | } |
| 2307 | + } else { |
| 2308 | + $tp = $nt->getTitleProtection(); |
| 2309 | + if (!$wgUser->isAllowed($tp['pt_create_perm'])) { |
| 2310 | + return 'cantmove-titleprotected'; |
| 2311 | + } |
2307 | 2312 | } |
2308 | 2313 | return true; |
2309 | 2314 | } |
Index: trunk/phase3/languages/messages/MessagesEn.php |
— | — | @@ -2213,6 +2213,7 @@ |
2214 | 2214 | 'articleexists' => 'A page of that name already exists, or the |
2215 | 2215 | name you have chosen is not valid. |
2216 | 2216 | Please choose another name.', |
| 2217 | +'cantmove-titleprotected' => 'You cannot move a page to this location, because the new title has been protected from creation', |
2217 | 2218 | 'talkexists' => "'''The page itself was moved successfully, but the talk page could not be moved because one already exists at the new title. Please merge them manually.'''", |
2218 | 2219 | 'movedto' => 'moved to', |
2219 | 2220 | 'movetalk' => 'Move associated talk page', |