Пример #1
0
 /**
  * Get content with appended edit comment as HTML.
  *
  * @param string  $description  Database entry of forum entry's body.
  * @param bool    $anonymous    True, if only root is allowed to see
  *                              authors.
  * @return string  Content and edit comment as HTML.
  */
 static function getContentAsHtml($description, $anonymous = false)
 {
     $raw_content = ForumEntry::killEdit($description);
     $comment = ForumEntry::getEditComment($description, $anonymous);
     if ($comment) {
         $raw_content .= "\n" . '%%' . $comment . '%%';
     }
     $content = formatReady($raw_content);
     return $content;
 }