public function saveData()
 {
     if (!$this->checkAccess()) {
         $this->success = false;
         $this->error = $this->wf->Msg('promote-wrong-rights');
         return;
     }
     wfProfileIn(__METHOD__);
     $data = $this->request->getParams();
     if (empty($data['additionalImagesNames'])) {
         $data['additionalImagesNames'] = array();
     }
     try {
         $this->helper->saveVisualizationData($data, $this->wg->contLang->getCode());
         $this->success = true;
     } catch (Exception $e) {
         $this->success = false;
         $this->error = $e->getMessage();
     }
     wfProfileOut(__METHOD__);
 }
 public function saveData()
 {
     if (!$this->checkAccess()) {
         $this->success = false;
         $this->error = wfMsg('promote-wrong-rights');
         return;
     }
     wfProfileIn(__METHOD__);
     $data = $this->request->getParams();
     if (empty($data['additionalImagesNames'])) {
         $data['additionalImagesNames'] = array();
     }
     WikiaLogger::instance()->debug("SpecialPromote", ['method' => __METHOD__, 'data' => $data]);
     try {
         $this->helper->saveVisualizationData($data, $this->wg->contLang->getCode());
         $this->success = true;
         $this->helper->triggerReindexing();
     } catch (Exception $e) {
         $this->success = false;
         $this->error = $e->getMessage();
     }
     wfProfileOut(__METHOD__);
 }