Index: trunk/extensions/InputBox/InputBox.classes.php |
— | — | @@ -32,7 +32,7 @@ |
33 | 33 | /* Functions */ |
34 | 34 | |
35 | 35 | public function __construct( $parser ) { |
36 | | - $this->_parser = $parser; |
| 36 | + $this->mParser = $parser; |
37 | 37 | } |
38 | 38 | |
39 | 39 | public function render() { |
— | — | @@ -56,9 +56,9 @@ |
57 | 57 | array( |
58 | 58 | 'class' => 'error' |
59 | 59 | ), |
60 | | - strlen( $this->mtype ) > 0 |
61 | | - ? htmlspecialchars( wfMsgForContent( 'inputbox-error-bad-type', $this->mType ) ) |
62 | | - : htmlspecialchars( wfMsgForContent( 'inputbox-error-no-type' ) ) |
| 60 | + strlen( $this->mType ) > 0 |
| 61 | + ? wfMsgForContent( 'inputbox-error-bad-type', $this->mType ) |
| 62 | + : wfMsgForContent( 'inputbox-error-no-type' ) |
63 | 63 | ) |
64 | 64 | ); |
65 | 65 | } |
— | — | @@ -129,11 +129,12 @@ |
130 | 130 | array( |
131 | 131 | 'type' => 'checkbox', |
132 | 132 | 'name' => 'ns' . $i, |
133 | | - 'value' => 1 |
| 133 | + 'value' => 1, |
| 134 | + 'id' => 'mw-inputbox-ns' . $i |
134 | 135 | ) + $checked |
135 | 136 | ); |
136 | 137 | // Label |
137 | | - $htmlOut .= ' ' . htmlspecialchars( $userNamespace ); |
| 138 | + $htmlOut .= ' ' . Xml::label( $userNamespace, 'mw-inputbox-ns' . $i ); |
138 | 139 | } |
139 | 140 | } |
140 | 141 | } |
— | — | @@ -454,7 +455,7 @@ |
455 | 456 | 'buttonlabel' => array( 'mButtonLabel', '' ), |
456 | 457 | 'searchbuttonlabel' => array( 'mSearchButtonLabel', '' ), |
457 | 458 | 'fulltextbutton' => array( 'mFullTextButton', '' ), |
458 | | - 'namespaces' => array( '_namespaces', '' ), |
| 459 | + 'namespaces' => array( 'mNamespaces', '' ), |
459 | 460 | 'labeltext' => array( 'mLabelText', '' ), |
460 | 461 | 'hidden' => array( 'mHidden', '' ), |
461 | 462 | 'id' => array( 'mID', '' ), |