equal
deleted
inserted
replaced
424 |
424 |
425 $prof_contentevent = profiler_log("Namespace [$this->namespace, $this->page_id]: headers and preprocessing done - about to send content"); |
425 $prof_contentevent = profiler_log("Namespace [$this->namespace, $this->page_id]: headers and preprocessing done - about to send content"); |
426 |
426 |
427 if ( $incl_inner_headers ) |
427 if ( $incl_inner_headers ) |
428 { |
428 { |
429 if ( $page_format === 'wikitext' ) |
429 if ( $page_format === 'wikitext' || !function_exists("render_text_{$page_format}") ) |
430 { |
430 { |
431 $text = '?>' . RenderMan::render($text); |
431 $text = '?>' . RenderMan::render($text); |
432 } |
432 } |
433 else |
433 else |
434 { |
434 { |
|
435 $result = call_user_func("render_text_{$page_format}", $text); |
|
436 if ( is_string($result) ) |
|
437 { |
|
438 $text = $result; |
|
439 unset($result); |
|
440 } |
435 // Page format is XHTML. This means we want to disable functionality that MCE takes care of, while still retaining |
441 // Page format is XHTML. This means we want to disable functionality that MCE takes care of, while still retaining |
436 // the ability to wikilink, the ability to use images, etc. Basically, RENDER_INLINEONLY disables all behavior in |
442 // the ability to wikilink, the ability to use images, etc. Basically, RENDER_INLINEONLY disables all behavior in |
437 // the rendering engine/Text_Wiki that conflicts with MCE. |
443 // the rendering engine/Text_Wiki that conflicts with MCE. |
438 $text = '?>' . RenderMan::render($text, RENDER_INLINE); |
|
439 } |
444 } |
440 } |
445 } |
441 else |
446 else |
442 { |
447 { |
443 $text = '?>' . $text; |
448 $text = '?>' . $text; |