setHeaders(); $this->outputHeader(); $out = $this->getOutput(); $this->addHelpLink( 'Help:New images' ); $pager = new NewFilesPager( $this->getContext(), $par ); if ( !$this->including() ) { $this->setTopText(); $form = $pager->getForm(); $form->prepareForm(); $form->displayForm( '' ); } $out->addHTML( $pager->getBody() ); if ( !$this->including() ) { $out->addHTML( $pager->getNavigationBar() ); } } 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', [ 'lang' => $wgContLang->getHtmlCode(), 'dir' => $wgContLang->getDir() ], "\n" . $message->plain() . "\n" ), /* $lineStart */ false, /* $interface */ false ); } } }