public function index()
 {
     if (!$this->checkAccess()) {
         return false;
     }
     $this->wg->out->setPageTitle(wfMsg('promote-title'));
     if (!$this->app->checkSkin('oasis')) {
         $this->wg->out->addWikiMsg('promote-error-oasis-only');
         $this->skipRendering();
         return true;
     }
     $this->response->addAsset('resources/wikia/libraries/aim/jquery.aim.js');
     $this->response->addAsset('extensions/wikia/SpecialPromote/js/SpecialPromote.js');
     F::build('JSMessages')->enqueuePackage('SpecialPromote', JSMessages::EXTERNAL);
     $this->helper->loadWikiInfo();
     $this->minHeaderLength = $this->helper->getMinHeaderLength();
     $this->maxHeaderLength = $this->helper->getMaxHeaderLength();
     $this->minDescriptionLength = $this->helper->getMinDescriptionLength();
     $this->maxDescriptionLength = $this->helper->getMaxDescriptionLength();
     $this->wikiHeadline = $this->helper->getWikiHeadline();
     $this->wikiDesc = $this->helper->getWikiDesc();
     $this->mainImage = $this->helper->getMainImage();
     $this->additionalImages = $this->helper->getAdditionalImages();
     $this->wikiStatus = $this->helper->getWikiStatusMessage($this->wg->CityId, $this->wg->contLang->getCode());
 }
 public function index()
 {
     if (!$this->checkAccess()) {
         return false;
     }
     $this->wg->out->setPageTitle(wfMsg('promote-title'));
     if (!$this->app->checkSkin('oasis')) {
         $this->wg->out->addWikiMsg('promote-error-oasis-only');
         $this->skipRendering();
         return true;
     }
     $this->response->addAsset('extensions/wikia/SpecialPromote/js/SpecialPromote.js');
     JSMessages::enqueuePackage('SpecialPromote', JSMessages::EXTERNAL);
     $this->minHeaderLength = $this->helper->getMinHeaderLength();
     $this->maxHeaderLength = $this->helper->getMaxHeaderLength();
     $this->minDescriptionLength = $this->helper->getMinDescriptionLength();
     $this->maxDescriptionLength = $this->helper->getMaxDescriptionLength();
     $this->wikiHeadline = $this->helper->getWikiHeadline();
     $this->wikiDesc = $this->helper->getWikiDesc();
     $this->mainImage = $this->helper->getMainImage();
     $this->additionalImages = $this->helper->getAdditionalImages();
     $this->wikiStatus = $this->helper->getWikiStatusMessage($this->wg->CityId, $this->wg->contLang->getCode());
     $cityVisualization = new CityVisualization();
     $this->isCorpLang = $cityVisualization->isCorporateLang($this->wg->contLang->getCode());
 }