Пример #1
0
 /**
  * @param bool $isEncode
  * @return string
  */
 function PrintHtmlBody($isEncode = true, $isFromSave = false)
 {
     if (($this->account->ViewMode == VIEW_MODE_PREVIEW_PANE_NO_IMG || $this->account->ViewMode == VIEW_MODE_WITHOUT_PREVIEW_PANE_NO_IMG) && !$isFromSave) {
         $newtext = ConvertUtils::HtmlBodyWithoutImages($this->msg->GetCensoredHtmlWithImageLinks($isEncode));
         if (isset($GLOBALS[GL_WITHIMG]) && $GLOBALS[GL_WITHIMG]) {
             $GLOBALS[GL_WITHIMG] = false;
             $this->isSafety = false;
         }
     } else {
         $newtext = $this->msg->GetCensoredHtmlWithImageLinks($isEncode);
     }
     return $newtext;
 }