function HTMLSelectGroups($selectname, $selectmsg, $selected=array(), $multiple=false, $size=6, $reverse=false) {
$groups = User::getAllGroups();
$out = htmlspecialchars( wfMsg( $selectmsg ) );
+ $out .= "<br />";
if( $multiple ) {
$attribs = array(
} else {
$attribs = array( 'name' => $selectname );
}
- $out .= wfElement( 'select', $attribs, null );
+ $attribs['style'] = 'width: 100%';
+ $out .= wfOpenElement( 'select', $attribs );
foreach( $groups as $group ) {
$attribs = array( 'value' => $group );
return $out;
}
-?>
+