/** * Update current template setting * * @access private */ private function update() { if (VPost::update(false) && VPost::tpl_id()) { try { $tpl = new Setting(VPost::tpl_id()); $tpl->_data = json_decode($tpl->_data, true); $this->_setting->_name = $tpl->_data['name']; $this->_setting->_data = $tpl->_data['namespace']; $this->_setting->update('_name', 'str'); $this->_setting->update('_data', 'str'); $result = true; } catch (Exception $e) { $result = $e->getMessage(); } $this->_action_msg = ActionMessages::template_updated($result); } }