From: Janusz Dobrowolski Date: Sun, 18 May 2008 11:32:27 +0000 (+0000) Subject: Added explicit ob_end_flush on shutdown for php 5 X-Git-Tag: v2.4.2~19^2~2062 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=bcbf5c697db09a36994f391b5fe568d269145c68;p=fa-stable.git Added explicit ob_end_flush on shutdown for php 5 --- 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 */);