protected function _postSaveAfterTransaction() { if (!empty($this->_tagger)) { if ($this->isInsert()) { $this->_tagger->setContent($this->get('post_id'), true); } $this->_tagger->save(); } parent::_postSaveAfterTransaction(); }
public function Tinhte_XenTag_actionSaveAfterTransaction(XenForo_DataWriter_Page $dw) { if (!empty($this->_tagger)) { unset($GLOBALS[Tinhte_XenTag_Constants::GLOBALS_CONTROLLERADMIN_PAGE_SAVE]); if ($dw->isInsert()) { $this->_tagger->setContent($dw->get('node_id'), true); } $this->_tagger->save(); } }