예제 #1
0
 function actionCmtPost()
 {
     $mixedResult = parent::actionCmtPost();
     if (empty($mixedResult)) {
         return $mixedResult;
     }
     $aEvent = $this->_oModule->_oDb->getEvents(array('browse' => 'id', 'object_id' => (int) $this->getId()));
     if (isset($aEvent['owner_id']) && (int) $aEvent['owner_id'] > 0) {
         //--- Wall -> Update for Alerts Engine ---//
         bx_import('BxDolAlerts');
         $oAlert = new BxDolAlerts('bx_' . $this->_oModule->_oConfig->getUri(), 'update', $aEvent['owner_id']);
         $oAlert->alert();
         //--- Wall -> Update for Alerts Engine ---//
     }
     return $mixedResult;
 }