'protect/protect' => 'protectedarticle',
'protect/modify' => 'modifiedarticleprotection',
'protect/unprotect' => 'unprotectedarticle',
+ 'protect/move_prot' => 'movedarticleprotection',
'rights/rights' => 'rightslogentry',
'delete/delete' => 'deletedarticle',
'delete/restore' => 'undeletedarticle',
);
# Update the protection log
$log = new LogPage( 'protect' );
- $comment = wfMsgForContent('1movedto2',$this->getPrefixedText(), $nt->getPrefixedText() );
- $log->addEntry( 'protect', $nt, $comment, array() ); // FIXME: $params?
+ $comment = wfMsgForContent('prot_1movedto2',$this->getPrefixedText(), $nt->getPrefixedText() );
+ if( $reason ) $comment .= ': ' . $reason;
+ $log->addEntry( 'move_prot', $nt, $comment, array($this->getPrefixedText()) ); // FIXME: $params?
}
# Update watchlists
'protectedarticle' => 'protected "[[$1]]"',
'modifiedarticleprotection' => 'changed protection level for "[[$1]]"',
'unprotectedarticle' => 'unprotected "[[$1]]"',
+'movedarticleprotection' => 'moved protection settings from "[[$2]]" to "[[$1]]"',
+'prot_1movedto2' => '[[$1]] moved to [[$2]]',
'protect-title' => 'Change protection level for "$1"',
'protect-backlink' => '← $1', # only translate this message to other languages if you have to change it
'protect-legend' => 'Confirm protection',