Пример #1
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());
     }
 }
Пример #2
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());
     }
 }