/**
  * Update setting
  *
  * @access	private
  */
 private function update()
 {
     if (VPost::update_setting(false)) {
         try {
             $array = VPost::settings(array('media' => false));
             $settings = array('media' => false);
             foreach ($settings as $key => &$value) {
                 if (in_array($key, $array)) {
                     $value = true;
                 }
             }
             $this->_setting->_data = json_encode($settings);
             $this->_setting->update('_data', 'str');
             $this->_setting->_data = json_decode($this->_setting->_data, true);
             $result = true;
         } catch (Exception $e) {
             $result = $e->getMessage();
         }
         $this->_action_msg = ActionMessages::updated($result);
     }
 }
 /**
  * Update setting
  *
  * @access	private
  */
 private function update()
 {
     if (VPost::update_setting(false)) {
         try {
             $this->_setting->_data = json_encode(VPost::networks(array()));
             $this->_setting->update('_data', 'str');
             $this->_setting->_data = json_decode($this->_setting->_data, true);
             $result = true;
         } catch (Exception $e) {
             $resut = $e->getMessage();
         }
         $this->_action_msg = ActionMessages::updated($result);
     }
 }