浏览代码

Merge branch 'master' of https://github.com/unaio/una

AntonLV 6 年之前
父节点
当前提交
0569b8fed9
共有 1 个文件被更改,包括 6 次插入 和 2 次删除
  1. 6 2
      template/scripts/BxBaseCmts.php

+ 6 - 2
template/scripts/BxBaseCmts.php

@@ -322,8 +322,8 @@ class BxBaseCmts extends BxDolCmts
         }
 
         $sContent = $this->_getContent($aCmt);
-
-        return $this->_oTemplate->parseHtmlByName($this->_sTmplNameItem, array_merge(array(
+        
+        $sResult = $this->_oTemplate->parseHtmlByName($this->_sTmplNameItem, array_merge(array(
             'system' => $this->_sSystem,
             'style_prefix' => $this->_sStylePrefix,
             'js_object' => $this->_sJsObjName,
@@ -343,6 +343,10 @@ class BxBaseCmts extends BxDolCmts
             'actions' => $sActions,
             'replies' =>  $sReplies,
         ), $this->_getTmplVarsAuthor($aCmt)));
+        
+        bx_alert('system', 'view_comment', $aCmt['cmt_id'], 0, array('comment' => $aCmt, 'system' => $this->_sSystem, 'override_result' => &$sResult));
+        
+        return $sResult;
     }
 
     public function getCommentStructure($iCmtId, $aBp = array(), $aDp = array())