RomanL 7 年 前
親
コミット
d2baf95b84
1 ファイル変更、6 行追加、2 行削除
  1. 6 2
      modules/boonex/notifications/classes/BxNtfsTemplate.php

+ 6 - 2
modules/boonex/notifications/classes/BxNtfsTemplate.php

@@ -169,8 +169,12 @@ class BxNtfsTemplate extends BxBaseModNotificationsTemplate
             if(substr($sValue, 0, 1) == '_')
                     $aEvent['content'][$sKey] = _t($sValue);        
 
-    	$aEvent['content_parsed'] = _t(!empty($aEvent['content']['lang_key']) ? $aEvent['content']['lang_key'] : $this->_getContentLangKey($aEvent));
-    	$aEvent['content_parsed'] = $this->parseHtmlByContent($aEvent['content_parsed'], $aEvent['content'], array('{', '}'));
+    	$bEventParsed = false;
+        bx_alert($this->_oConfig->getName(), 'get_notification', 0, 0, array('event' => &$aEvent, 'event_parsed' => &$bEventParsed, 'owner' => &$oOwner));
+        if (!$bEventParsed){
+    	    $aEvent['content_parsed'] = _t(!empty($aEvent['content']['lang_key']) ? $aEvent['content']['lang_key'] : $this->_getContentLangKey($aEvent));
+    	    $aEvent['content_parsed'] = $this->parseHtmlByContent($aEvent['content_parsed'], $aEvent['content'], array('{', '}'));
+        }
 
         return $this->parseHtmlByName('event.html', array (
             'html_id' => $this->_oConfig->getHtmlIds('view', 'event') . $aEvent['id'],