X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialNewimages.php;h=147d176d4ba4e69473ad5896c394077035257de9;hb=2828ef9f34d9f47ef896523b132661c280768ea9;hp=c10a618b09b0d02a053f23f27d67440c3e4dbfe2;hpb=374cce86c81e61f7e0aacc38defd4d2c35313c98;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialNewimages.php b/includes/specials/SpecialNewimages.php index c10a618b09..147d176d4b 100644 --- a/includes/specials/SpecialNewimages.php +++ b/includes/specials/SpecialNewimages.php @@ -33,6 +33,7 @@ class SpecialNewFiles extends IncludableSpecialPage { $pager = new NewFilesPager( $this->getContext(), $par ); if ( !$this->including() ) { + $this->setTopText(); $form = $pager->getForm(); $form->prepareForm(); $form->displayForm( '' ); @@ -47,6 +48,25 @@ class SpecialNewFiles extends IncludableSpecialPage { 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 + ); + } + } } /** @@ -56,7 +76,7 @@ class NewFilesPager extends ReverseChronologicalPager { /** * @var ImageGallery */ - var $gallery; + protected $gallery; function __construct( IContextSource $context, $par = null ) { $this->like = $context->getRequest()->getText( 'like' ); @@ -163,7 +183,7 @@ class NewFilesPager extends ReverseChronologicalPager { ), 'showbots' => array( 'type' => 'check', - 'label' => $this->msg( 'showhidebots', $this->msg( 'show' )->plain() )->escaped(), + 'label-message' => 'newimages-showbots', 'name' => 'showbots', ), 'limit' => array(