Ejemplo n.º 1
0
 public function execute($par)
 {
     $this->setHeaders();
     $this->outputHeader();
     $out = $this->getOutput();
     $this->addHelpLink('Help:New images');
     $opts = new FormOptions();
     $opts->add('like', '');
     $opts->add('showbots', false);
     $opts->add('hidepatrolled', false);
     $opts->add('limit', 50);
     $opts->add('offset', '');
     $opts->fetchValuesFromRequest($this->getRequest());
     if ($par !== null) {
         $opts->setValue(is_numeric($par) ? 'limit' : 'like', $par);
     }
     $opts->validateIntBounds('limit', 0, 500);
     $this->opts = $opts;
     if (!$this->including()) {
         $this->setTopText();
         $this->buildForm();
     }
     $pager = new NewFilesPager($this->getContext(), $opts);
     $out->addHTML($pager->getBody());
     if (!$this->including()) {
         $out->addHTML($pager->getNavigationBar());
     }
 }
Ejemplo n.º 2
0
 public function execute($par)
 {
     $this->setHeaders();
     $this->outputHeader();
     $pager = new NewFilesPager($this->getContext(), $par);
     if (!$this->including()) {
         $form = $pager->getForm();
         $form->prepareForm();
         $form->displayForm('');
     }
     $this->getOutput()->addHTML($pager->getBody());
     if (!$this->including()) {
         $this->getOutput()->addHTML($pager->getNavigationBar());
     }
 }
Ejemplo n.º 3
0
 public function execute($par)
 {
     // Wikia change - begin
     global $wgUseWikiaNewFiles, $wgEnableWikiaPhotoGalleryExt;
     if ($wgUseWikiaNewFiles && $wgEnableWikiaPhotoGalleryExt) {
         return wfSpecialWikiaNewFiles($par, $specialPage);
     }
     // Wikia change - end
     $this->setHeaders();
     $this->outputHeader();
     $pager = new NewFilesPager($this->getContext(), $par);
     if (!$this->including()) {
         $form = $pager->getForm();
         $form->prepareForm();
         $form->displayForm('');
     }
     $this->getOutput()->addHTML($pager->getBody());
     if (!$this->including()) {
         $this->getOutput()->addHTML($pager->getNavigationBar());
     }
 }