Răsfoiți Sursa

#2327 add alert for alert params modification

RomanL 7 ani în urmă
părinte
comite
cd37fb34c4

+ 1 - 1
modules/base/text/classes/BxBaseModTextModule.php

@@ -330,7 +330,7 @@ class BxBaseModTextModule extends BxBaseModGeneralModule implements iBxDolConten
             $sAction = 'deferred';
 
         $aParams = $this->_alertParams($aContentInfo);
-        bx_alert($this->getName(), 'prepare_alert_params', 0, 0, array('action' => $sAction,'object_id' => $iId, 'sender_id' => $iAuthorId, 'extras' => &$aParams));
+        bx_alert('system', 'prepare_alert_params', 0, 0, array('unit'=> $this->getName(), 'action' => $sAction, 'object_id' => $iId, 'sender_id' => $iAuthorId, 'extras' => &$aParams));
         bx_alert($this->getName(), $sAction, $iId, $iAuthorId, $aParams);
     }
 

+ 4 - 3
modules/boonex/channels/classes/BxCnlModule.php

@@ -90,15 +90,16 @@ class BxCnlModule extends BxBaseModGroupsModule
                 'field' => 'owner_id'
             )
         ));
-
-        bx_alert($this->_aModule['name'], 'hashtag_added_notif', $mixedCnlId, $iCnlProfileId, array(
+        $aParams = array(
             'object_author_id' => $iAuthorId, 
             'privacy_view' => -$iCnlProfileId, 
             'subobject_id' => $iId,
 
             'content_id' => $iContentId,
             'content_author_id' => $iAuthorId
-        ));
+        );
+        bx_alert('system', 'prepare_alert_params', 0, 0, array('unit'=> $this->_aModule['name'], 'action' => 'hashtag_added_notif', 'object_id' => $mixedCnlId, 'sender_id' => $iCnlProfileId, 'extras' => &$aParams));
+        bx_alert($this->_aModule['name'], 'hashtag_added_notif', $mixedCnlId, $iCnlProfileId, $aParams);
     }
     
     function removeContentFromChannel($iContentId, $sModuleName)