if ( ! $this->isValidMoveTarget( $nt ) ) {
return 'articleexists';
}
+ } else {
+ $tp = $nt->getTitleProtection();
+ if (!$wgUser->isAllowed($tp['pt_create_perm'])) {
+ return 'cantmove-titleprotected';
+ }
}
return true;
}
'articleexists' => 'A page of that name already exists, or the
name you have chosen is not valid.
Please choose another name.',
+'cantmove-titleprotected' => 'You cannot move a page to this location, because the new title has been protected from creation',
'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.'''",
'movedto' => 'moved to',
'movetalk' => 'Move associated talk page',