From: Aaron Schulz Date: Mon, 29 Sep 2008 13:25:35 +0000 (+0000) Subject: Some protection move log cleanup (bug 15754) X-Git-Tag: 1.31.0-rc.0~45017 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=5003f0db44732337a179865624463a9ad8d0932a;p=lhc%2Fweb%2Fwiklou.git Some protection move log cleanup (bug 15754) --- diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 85602dd796..f331d91b57 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -2736,6 +2736,7 @@ $wgLogActions = array( 'protect/protect' => 'protectedarticle', 'protect/modify' => 'modifiedarticleprotection', 'protect/unprotect' => 'unprotectedarticle', + 'protect/move_prot' => 'movedarticleprotection', 'rights/rights' => 'rightslogentry', 'delete/delete' => 'deletedarticle', 'delete/restore' => 'undeletedarticle', diff --git a/includes/Title.php b/includes/Title.php index d3ed52667b..80ebdb1b53 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -2543,8 +2543,9 @@ class Title { ); # 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 diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index ed95b54027..4a36065571 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -2356,6 +2356,8 @@ See the [[Special:ProtectedPages|protected pages list]] for the list of currentl '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',