| @@ 126-140 (lines=15) @@ | ||
| 123 | /** |
|
| 124 | * Send the text to be displayed above the options |
|
| 125 | */ |
|
| 126 | function setTopText() { |
|
| 127 | global $wgContLang; |
|
| 128 | ||
| 129 | $message = $this->msg( 'newimagestext' )->inContentLanguage(); |
|
| 130 | if ( !$message->isDisabled() ) { |
|
| 131 | $this->getOutput()->addWikiText( |
|
| 132 | Html::rawElement( 'p', |
|
| 133 | [ 'lang' => $wgContLang->getHtmlCode(), 'dir' => $wgContLang->getDir() ], |
|
| 134 | "\n" . $message->plain() . "\n" |
|
| 135 | ), |
|
| 136 | /* $lineStart */ false, |
|
| 137 | /* $interface */ false |
|
| 138 | ); |
|
| 139 | } |
|
| 140 | } |
|
| 141 | } |
|
| 142 | ||
| @@ 470-484 (lines=15) @@ | ||
| 467 | * |
|
| 468 | * @param FormOptions $opts Unused |
|
| 469 | */ |
|
| 470 | function setTopText( FormOptions $opts ) { |
|
| 471 | global $wgContLang; |
|
| 472 | ||
| 473 | $message = $this->msg( 'recentchangestext' )->inContentLanguage(); |
|
| 474 | if ( !$message->isDisabled() ) { |
|
| 475 | $this->getOutput()->addWikiText( |
|
| 476 | Html::rawElement( 'div', |
|
| 477 | [ 'lang' => $wgContLang->getHtmlCode(), 'dir' => $wgContLang->getDir() ], |
|
| 478 | "\n" . $message->plain() . "\n" |
|
| 479 | ), |
|
| 480 | /* $lineStart */ true, |
|
| 481 | /* $interface */ false |
|
| 482 | ); |
|
| 483 | } |
|
| 484 | } |
|
| 485 | ||
| 486 | /** |
|
| 487 | * Get options to be displayed in a form |
|