Index: trunk/extensions/SimpleSecurity/SimpleSecurity_body.php |
— | — | @@ -309,8 +309,14 @@ |
310 | 310 | # - also update info array with page-restriction that apply to this title (LS), and rules in effect for this user (CR) |
311 | 311 | if ( $deny ) { |
312 | 312 | foreach ( $restriction as $action => $reqgroups ) { |
313 | | - if ( !is_array( $reqgroups ) ) $reqgroups = array( $reqgroups ); |
314 | | - if ( $updateInfo ) $this->info['LS'][] = array( $action, $reqgroups, wfMsg( 'security-desc-LS', strtolower( $type ), $data ) ); |
| 313 | + if ( !is_array( $reqgroups ) ) { |
| 314 | + $reqgroups = array( $reqgroups ); |
| 315 | + } |
| 316 | + |
| 317 | + if ( $updateInfo ) { |
| 318 | + $this->info['LS'][] = array( $action, $reqgroups, wfMsg( 'security-desc-LS', wfMsg( 'security-type-' . strtolower( $type ) ), $data ) ); |
| 319 | + } |
| 320 | + |
315 | 321 | if ( !in_array( 'sysop', $groups ) && !array_intersect( $groups, $reqgroups ) ) { |
316 | 322 | foreach ( $rights as $i => $right ) if ( $right === $action ) unset( $rights[$i] ); |
317 | 323 | # $this->info['CR'][] = array($action, $reqgroups, wfMsg('security-desc-CR')); |
Index: trunk/extensions/SimpleSecurity/SimpleSecurity.i18n.php |
— | — | @@ -24,10 +24,12 @@ |
25 | 25 | 'security-inforestrict' => '$1 is restricted to $2', |
26 | 26 | 'security-desc-LS' => "''(applies because this page is in the '''$2 $1''')''", |
27 | 27 | 'security-desc-PR' => "''(set from the '''protect tab''')''", |
28 | | - 'security-desc-CR' => "''(this restriction is '''in effect now''')''", |
| 28 | + #'security-desc-CR' => "''(this restriction is '''in effect now''')''", |
29 | 29 | 'security-infosysops' => "No restrictions are in effect because you are a member of the '''sysop''' group", |
30 | 30 | 'security-manygroups' => 'groups $1 and $2', |
31 | 31 | 'security-unchain' => 'Modify actions individually', |
| 32 | + 'security-type-category' => 'category', |
| 33 | + 'security-type-namespace' => 'namespace', |
32 | 34 | ); |
33 | 35 | |
34 | 36 | /** Message documentation (Message documentation) |