Ejemplo n.º 1
0
 function execute($par)
 {
     $this->mName = 'WikiaNewFiles';
     $this->setHeaders();
     Wikia::addAssetsToOutput('upload_photos_dialog_js');
     Wikia::addAssetsToOutput('upload_photos_dialog_scss');
     wfSpecialWikiaNewFiles($par, $this);
 }
Ejemplo n.º 2
0
 function recentlyUploaded()
 {
     global $IP, $wmu;
     require_once $IP . '/extensions/wikia/WikiaNewFiles/SpecialNewFiles.php';
     $isp = new IncludableSpecialPage('Newimages', '', 1, 'wfSpecialWikiaNewFiles', $IP . '/extensions/wikia/WikiaNewFiles/SpecialNewFiles.php');
     wfSpecialWikiaNewFiles(8, $isp);
     $tmpl = new EasyTemplate(dirname(__FILE__) . '/templates/');
     $tmpl->set_vars(array('data' => $wmu));
     return $tmpl->render("results_recently");
 }
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());
     }
 }
Ejemplo n.º 4
0
 function execute($par)
 {
     $this->mName = 'WikiaNewFiles';
     $this->setHeaders();
     wfSpecialWikiaNewFiles($par, $this);
 }