Added explicit ob_end_flush on shutdown for php 5
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Sun, 18 May 2008 11:32:27 +0000 (11:32 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Sun, 18 May 2008 11:32:27 +0000 (11:32 +0000)
includes/main.inc

index 2180ec05793a0b3d0ab91823227eae9f36cea835..b63a86cc173244ada06d060329054d49822ab29b 100644 (file)
@@ -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 */);