mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Output previously buffered content only if the response format is HTML
This commit is contained in:
parent
0b9131e664
commit
925ddf9fa0
1 changed files with 6 additions and 0 deletions
|
|
@ -143,6 +143,12 @@ class DisplayHandler extends Handler
|
|||
self::$response_size = $this->content_size = strlen($output);
|
||||
ModuleHandler::triggerCall('display', 'after', $output);
|
||||
|
||||
// Output buffered content only if the current page is HTML.
|
||||
if ($handler instanceof HTMLDisplayHandler)
|
||||
{
|
||||
echo $buff;
|
||||
}
|
||||
|
||||
// Output the page content and debug data.
|
||||
$debug = self::getDebugInfo($output);
|
||||
print $output;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue