Index: trunk/extensions/CentralAuth/SpecialGlobalGroupPermissions.php |
— | — | @@ -191,10 +191,14 @@ |
192 | 192 | # Build a checkbox. |
193 | 193 | $checked = in_array( $right, $assignedRights ); |
194 | 194 | |
195 | | - $checkbox = Xml::checkLabel( User::getRightDescription( $right ), |
196 | | - "wpRightAssigned-$right", "wpRightAssigned-$right", $checked, $attribs ); |
| 195 | + $desc = htmlspecialchars(User::getRightDescription( $right )) . ' (' . |
| 196 | + Xml::element( 'tt', null, $right ).')'; |
197 | 197 | |
198 | | - $checkboxes[] = "<li>$checkbox</li>"; |
| 198 | + $checkbox = Xml::check( "wpRightAssigned-$right", $checked, $attribs ); |
| 199 | + $label = Xml::tags( 'label', array( 'for' => "wpRightAssigned-$right" ), |
| 200 | + $desc ); |
| 201 | + |
| 202 | + $checkboxes[] = "<li>$checkbox $label</li>"; |
199 | 203 | } |
200 | 204 | |
201 | 205 | $count = count($checkboxes); |