Index: trunk/extensions/Configure/Configure.page.php |
— | — | @@ -1060,9 +1060,10 @@ |
1061 | 1061 | else |
1062 | 1062 | $checked = in_array( $right, $levs ); |
1063 | 1063 | $id = Sanitizer::escapeId( 'wp' . $conf . '-' . $group . '-' . $right ); |
1064 | | - $desc = ( $type == 'group-bool' && is_callable( array( 'User', 'getRightDescription' ) ) ) ? |
1065 | | - User::getRightDescription( $right ) . " (" .Xml::element( 'tt', null, $right ) . ")" : |
1066 | | - $right; |
| 1064 | + if( $type == 'group-bool' ) |
| 1065 | + $desc = User::getRightDescription( $right ) . " (" .Xml::element( 'tt', null, $right ) . ")"; |
| 1066 | + else |
| 1067 | + $desc = User::getGroupName( $right ); |
1067 | 1068 | $row .= '<li>' . Xml::check( $id, $checked, $attr + array( 'id' => $id ) ) . ' ' . Xml::tags( 'label', array( 'for' => $id ), $desc ) . "</li>\n"; |
1068 | 1069 | } |
1069 | 1070 | $row .= '</ul></div>'; |