Index: trunk/extensions/InputBox/InputBox.classes.php |
— | — | @@ -183,22 +183,10 @@ |
184 | 184 | $id = Sanitizer::escapeId( $this->mID ); |
185 | 185 | $htmlLabel = ''; |
186 | 186 | if ( isset( $this->mLabelText ) && strlen( trim( $this->mLabelText ) ) ) { |
187 | | - $output = $this->mParser->parse( |
188 | | - $this->mLabelText, |
189 | | - $this->mParser->getTitle(), |
190 | | - $this->mParser->getOptions(), |
191 | | - false, |
192 | | - false |
193 | | - ); |
194 | | - $this->mLabelText = $output->getText(); |
195 | | - $this->mLabelText = str_replace( '<p>', '', $this->mLabelText ); |
196 | | - $this->mLabelText = str_replace( '</p>', '', $this->mLabelText ); |
197 | | - $htmlLabel = Xml::element( 'label', |
198 | | - array( |
199 | | - 'for' => 'bodySearchIput' . $id |
200 | | - ), |
201 | | - $this->mLabelText |
202 | | - ); |
| 187 | + $this->mLabelText = $this->mParser->recursiveTagParse( $this->mLabelText ); |
| 188 | + $htmlLabel = Xml::openElement( 'label', array( 'for' => 'bodySearchInput' . $id ) ); |
| 189 | + $htmlLabel .= $this->mLabelText; |
| 190 | + $htmlLabel .= Xml::closeElement( 'label' ); |
203 | 191 | } |
204 | 192 | $htmlOut = Xml::openElement( 'form', |
205 | 193 | array( |
— | — | @@ -222,7 +210,7 @@ |
223 | 211 | 'type' => $this->mHidden ? 'hidden' : 'text', |
224 | 212 | 'name' => 'search', |
225 | 213 | 'size' => $this->mWidth, |
226 | | - 'class' => 'bodySearchInput' . $id |
| 214 | + 'id' => 'bodySearchInput' . $id |
227 | 215 | ) |
228 | 216 | ); |
229 | 217 | $htmlOut .= Xml::element( 'input', |