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()); } }
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()); } }