X-Git-Url: http://git.cyclocoop.org/%28%28?a=blobdiff_plain;f=includes%2FProtectionForm.php;h=f10317a9e561855b0fd6bb35387c2ff0d00bda3d;hb=3ca7f919e01617c4685efce285299aa351ff1dac;hp=4d41d9e312d500f398dbaa95b5960b1b45f88072;hpb=eb55497490972d65de1239101b254b644ad6f652;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php index 4d41d9e312..f10317a9e5 100644 --- a/includes/ProtectionForm.php +++ b/includes/ProtectionForm.php @@ -318,7 +318,7 @@ class ProtectionForm { * you can also return an array of message name and its parameters */ $errorMsg = ''; - if ( !wfRunHooks( 'ProtectionForm::save', array( $this->mArticle, &$errorMsg ) ) ) { + if ( !wfRunHooks( 'ProtectionForm::save', array( $this->mArticle, &$errorMsg, $reasonstr ) ) ) { if ( $errorMsg == '' ) { $errorMsg = array( 'hookaborted' ); } @@ -363,8 +363,10 @@ class ProtectionForm { Xml::openElement( 'table', array( 'id' => 'mwProtectSet' ) ) . Xml::openElement( 'tbody' ); + // Not all languages have V_x <-> N_x relation foreach ( $this->mRestrictions as $action => $selected ) { - /* Not all languages have V_x <-> N_x relation */ + // Messages: + // restriction-edit, restriction-move, restriction-create, restriction-upload $msg = wfMessage( 'restriction-' . $action ); $out .= "" . Xml::openElement( 'fieldset' ) . @@ -603,6 +605,7 @@ class ProtectionForm { if ( $permission == '' ) { return wfMessage( 'protect-default' )->text(); } else { + // Messages: protect-level-autoconfirmed, protect-level-sysop $msg = wfMessage( "protect-level-{$permission}" ); if ( $msg->exists() ) { return $msg->text();