Example #1
0
 public function update()
 {
     $this->csrf->check();
     if ($this->request->get('use_standard_homepage')) {
         $this->dao->useStandardHomepage();
     } else {
         $this->dao->doNotUseStandardHomepage();
     }
     $headlines = $this->request->get('headlines');
     if (is_array($headlines)) {
         $this->dao->save($headlines);
     }
     if ($this->request->get('remove_custom_logo')) {
         $this->removeCustomLogo();
     }
     $this->moveUploadedLogo();
     if (!$this->response->feedbackHasWarningsOrErrors()) {
         $this->response->addFeedback(Feedback::INFO, $GLOBALS['Language']->getText('admin_main', 'successfully_updated'));
     }
     $this->redirectToIndex();
 }