public function getHTML() {
global $wgRequest, $wgScript, $wgTitle;
$s = '';
- $legend = wfMsgHtml( 'listuserrestrictions-legend' );
- $s .= "<fieldset><legend>{$legend}</legend>";
+ $s .= Xml::fieldset( wfMsg( 'listuserrestrictions-legend' ) );
$s .= "<form action=\"{$wgScript}\">";
$s .= Xml::hidden( 'title', $wgTitle->getPrefixedDbKey() );
$s .= Xml::label( wfMsgHtml( 'listuserrestrictions-type' ), 'type' ) . ' ' .
$s .= ' ';
$s .= Xml::inputLabel( wfMsgHtml( 'listuserrestrictions-page' ), 'page', 'page',
false, $wgRequest->getVal( 'page' ) );
- $s .= Xml::submitButton( wfMsgHtml( 'listuserrestrictions-submit' ) );
+ $s .= Xml::submitButton( wfMsg( 'listuserrestrictions-submit' ) );
$s .= "</p></form></fieldset>";
return $s;
}
return;
}
- $legend = wfMsgHtml( 'removerestrictions-legend' );
-
$form = array();
$form['removerestrictions-user'] = $sk->userLink( $r->getSubjectId(), $r->getSubjectText() ) .
$sk->userToolLinks( $r->getSubjectId(), $r->getSubjectText() );
$result = wfSpecialRemoveRestrictionsProcess( $r );
$wgOut->addWikiMsg( 'removerestrictions-intro' );
- $wgOut->addHTML( "<fieldset><legend>{$legend}</legend>" );
+ $wgOut->addHTML( Xml::fieldset( wfMsgHtml( 'removerestrictions-legend' ) ) );
if( $result )
$wgOut->addHTML( '<strong class="success">' . wfMsgExt( 'removerestrictions-success',
'parseinline', $r->getSubjectText() ) . '</strong>' );
public static function selectUserForm( $val = null, $error = null ) {
global $wgScript, $wgTitle;
$legend = wfMsgHtml( 'restrictuser-userselect' );
- $s = "<fieldset><legend>{$legend}</legend><form action=\"{$wgScript}\">";
+ $s = Xml::fieldset( $legend ) . "<form action=\"{$wgScript}\">";
if( $error )
$s .= '<p>' . $error . '</p>';
$s .= Xml::hidden( 'title', $wgTitle->getPrefixedDbKey() );
public static function existingRestrictions( $restrictions ) {
require_once( dirname( __FILE__ ) . '/SpecialListUserRestrictions.php' );
$legend = wfMsgHtml( 'restrictuser-existing' );
- $s = "<fieldset><legend>{$legend}</legend><ul>";
+ $s = Xml::fieldset( $legend ) . '<ul>';
foreach( $restrictions as $r )
$s .= UserRestrictionsPager::formatRestriction( $r );
$s .= "</ul></fieldset>";
}
$useRequestValues = $wgRequest->getVal( 'type' ) == UserRestriction::PAGE;
$legend = wfMsgHtml( 'restrictuser-legend-page' );
- $wgOut->addHTML( "<fieldset><legend>{$legend}</legend>" );
+ $wgOut->addHTML( Xml::fieldset( $legend ) );
if( $error )
$wgOut->addHTML( '<strong class="error">' . $error . '</strong>' );
if( $success )
}
$useRequestValues = $wgRequest->getVal( 'type' ) == UserRestriction::NAMESPACE;
$legend = wfMsgHtml( 'restrictuser-legend-namespace' );
- $wgOut->addHTML( "<fieldset><legend>{$legend}</legend>" );
+ $wgOut->addHTML( Xml::fieldset( $legend ) );
if( $error )
$wgOut->addHTML( '<strong class="error">' . $error . '</strong>' );
if( $success )