mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/InputBox
synced 2024-11-23 22:54:02 +00:00
*Fix some variable typos
*Use <label>s with the search namespace checkboxes *Remove extra htmlspecialchars(), XML::element() does this for us.
This commit is contained in:
parent
49729f5d46
commit
7a6e480645
|
@ -32,7 +32,7 @@ class InputBox {
|
||||||
/* Functions */
|
/* Functions */
|
||||||
|
|
||||||
public function __construct( $parser ) {
|
public function __construct( $parser ) {
|
||||||
$this->_parser = $parser;
|
$this->mParser = $parser;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function render() {
|
public function render() {
|
||||||
|
@ -56,9 +56,9 @@ class InputBox {
|
||||||
array(
|
array(
|
||||||
'class' => 'error'
|
'class' => 'error'
|
||||||
),
|
),
|
||||||
strlen( $this->mtype ) > 0
|
strlen( $this->mType ) > 0
|
||||||
? htmlspecialchars( wfMsgForContent( 'inputbox-error-bad-type', $this->mType ) )
|
? wfMsgForContent( 'inputbox-error-bad-type', $this->mType )
|
||||||
: htmlspecialchars( wfMsgForContent( 'inputbox-error-no-type' ) )
|
: wfMsgForContent( 'inputbox-error-no-type' )
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -129,11 +129,12 @@ class InputBox {
|
||||||
array(
|
array(
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'name' => 'ns' . $i,
|
'name' => 'ns' . $i,
|
||||||
'value' => 1
|
'value' => 1,
|
||||||
|
'id' => 'mw-inputbox-ns' . $i
|
||||||
) + $checked
|
) + $checked
|
||||||
);
|
);
|
||||||
// Label
|
// Label
|
||||||
$htmlOut .= ' ' . htmlspecialchars( $userNamespace );
|
$htmlOut .= ' ' . Xml::label( $userNamespace, 'mw-inputbox-ns' . $i );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -454,7 +455,7 @@ class InputBox {
|
||||||
'buttonlabel' => array( 'mButtonLabel', '' ),
|
'buttonlabel' => array( 'mButtonLabel', '' ),
|
||||||
'searchbuttonlabel' => array( 'mSearchButtonLabel', '' ),
|
'searchbuttonlabel' => array( 'mSearchButtonLabel', '' ),
|
||||||
'fulltextbutton' => array( 'mFullTextButton', '' ),
|
'fulltextbutton' => array( 'mFullTextButton', '' ),
|
||||||
'namespaces' => array( '_namespaces', '' ),
|
'namespaces' => array( 'mNamespaces', '' ),
|
||||||
'labeltext' => array( 'mLabelText', '' ),
|
'labeltext' => array( 'mLabelText', '' ),
|
||||||
'hidden' => array( 'mHidden', '' ),
|
'hidden' => array( 'mHidden', '' ),
|
||||||
'id' => array( 'mID', '' ),
|
'id' => array( 'mID', '' ),
|
||||||
|
|
Loading…
Reference in a new issue