From bcbf5c697db09a36994f391b5fe568d269145c68 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Sun, 18 May 2008 11:32:27 +0000 Subject: [PATCH] Added explicit ob_end_flush on shutdown for php 5 --- includes/main.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/main.inc b/includes/main.inc index 2180ec05..b63a86cc 100644 --- a/includes/main.inc +++ b/includes/main.inc @@ -26,9 +26,9 @@ global $path_to_root; $hide_menu = $no_menu; - // intercept all output to destroy it in case of ajax call - ob_start('output_html'); + register_shutdown_function('ob_end_flush'); + ob_start('output_html',0); // colect all error msgs set_error_handler('error_handler' /*, errtypes */); -- 2.30.2