Index: branches/preferences-work/phase3/includes/HTMLForm.php |
— | — | @@ -401,6 +401,22 @@ |
402 | 402 | |
403 | 403 | $html = Xml::tags( 'tr', array( 'class' => "mw-htmlform-field-$fieldType" ), |
404 | 404 | $html ) . "\n"; |
| 405 | + |
| 406 | + // Help text |
| 407 | + if ( isset($this->mParams['help-message']) ) { |
| 408 | + $msg = $this->mParams['help-message']; |
| 409 | + |
| 410 | + $text = wfMsgExt( $msg, 'parseinline' ); |
| 411 | + |
| 412 | + if (!wfEmptyMsg( $msg, $text ) ) { |
| 413 | + $row = Xml::tags( 'td', array( 'colspan' => 2, 'class' => 'htmlform-tip' ), |
| 414 | + $text ); |
| 415 | + |
| 416 | + $row = Xml::tags( 'tr', null, $row ); |
| 417 | + |
| 418 | + $html .= "$row\n"; |
| 419 | + } |
| 420 | + } |
405 | 421 | |
406 | 422 | return $html; |
407 | 423 | } |