Menu

#49 displayObj->body returns null

v1.1
open
engine/api (24)
5
2003-06-30
2003-06-30
No

function displayThought( $thought = NULL ) {

if ( isset( $this->thoughtId ) ) {

// Create and display the HTML
template.
$template = new mmHtmlTemplate;
$htmlObj = parseHtml(
$thought->getDetail() );

if( $thought->displayRaw ) {
// Display headers and unfiltered HTML
$detail = $htmlObj->body;
} else { // Display
normal (filtered) HTML and no headers
//$detail =
postfilterHtml( $htmlObj->body, TRUE, 'AUTO' );
$detail =
postfilterHtml( $thought->getDetail(), TRUE, 'AUTO' );
}

Discussion


Log in to post a comment.

MongoDB Logo MongoDB