$pager = new NewFilesPager( $this->getContext(), $par );
if ( !$this->including() ) {
+ $this->setTopText();
$form = $pager->getForm();
$form->prepareForm();
$form->displayForm( '' );
protected function getGroupName() {
return 'changes';
}
+
+ /**
+ * Send the text to be displayed above the options
+ */
+ function setTopText() {
+ global $wgContLang;
+
+ $message = $this->msg( 'newimagestext' )->inContentLanguage();
+ if ( !$message->isDisabled() ) {
+ $this->getOutput()->addWikiText(
+ Html::rawElement( 'p',
+ array( 'lang' => $wgContLang->getCode(), 'dir' => $wgContLang->getDir() ),
+ "\n" . $message->plain() . "\n"
+ ),
+ /* $lineStart */ false,
+ /* $interface */ false
+ );
+ }
+ }
}
/**
/**
* @var ImageGallery
*/
- var $gallery;
+ protected $gallery;
function __construct( IContextSource $context, $par = null ) {
$this->like = $context->getRequest()->getText( 'like' );
),
'showbots' => array(
'type' => 'check',
- 'label' => $this->msg( 'showhidebots', $this->msg( 'show' )->plain() )->escaped(),
+ 'label-message' => 'newimages-showbots',
'name' => 'showbots',
),
'limit' => array(