Pass the user as an argument to 'isValidPassword' hook callbacks; see docs/hooks...
[lhc/web/wiklou.git] / includes / HTMLForm.php
index 1a2f581..0aaa076 100644 (file)
@@ -123,6 +123,7 @@ class HTMLForm {
 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(
@@ -132,7 +133,8 @@ function HTMLSelectGroups($selectname, $selectmsg, $selected=array(), $multiple=
        } 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 );
@@ -153,4 +155,4 @@ function HTMLSelectGroups($selectname, $selectmsg, $selected=array(), $multiple=
        return $out;
 }
 
-?>
+