1
0
Эх сурвалжийг харах

#1097 Some delay during posting when user has a lot of followers

Alex Trofimov 8 жил өмнө
parent
commit
0d540dee27
1 өөрчлөгдсөн 3 нэмэгдсэн , 0 устгасан
  1. 3 0
      inc/utils.inc.php

+ 3 - 0
inc/utils.inc.php

@@ -322,6 +322,9 @@ function sendMailTemplateSystem($sTemplateName, $aReplaceVars = array(), $iEmail
  */
 function sendMail($sRecipientEmail, $sMailSubject, $sMailBody, $iRecipientID = 0, $aPlus = array(), $iEmailType = BX_EMAIL_NOTIFY, $sEmailFlag = 'html', $isDisableAlert = false, $aCustomHeaders = array(), $bAddToQueue = false)
 {
+    if ($bAddToQueue)
+        $isDisableAlert = true;
+
     // make sure that recipient's email is valid and message isn't empty
     if (!$sMailBody || !$sRecipientEmail || preg_match('/\(2\)$/', $sRecipientEmail))
         return false;