Example #1
0
 protected function _updateDeletionLog()
 {
     // we have to use _updateDeletionLog here because _messagePostSave is triggered
     // too late and we can't update the search index from there...
     $tagTexts = $this->_Tinhte_XenTag_tagTexts;
     $this->_Tinhte_XenTag_updateTagsInDatabase();
     if (!$this->getExtraData(self::DATA_SKIP_UPDATE_THREAD_TAGS) and !empty($tagTexts) and $this->get('position') == 0) {
         $threadDw = $this->getDiscussionDataWriter();
         $isChanged = false;
         if (self::updateThreadDwFromPostDw($threadDw, $this)) {
             $threadDw->save();
         }
     }
     return parent::_updateDeletionLog();
 }