improved out buffer function handling;

bug #1690064 headers already sent error if OBGzip = 0
This commit is contained in:
Sebastian Mendel
2007-03-29 07:10:15 +00:00
parent a190872f0a
commit 3626acdb24
7 changed files with 21 additions and 83 deletions

View File

@@ -17,12 +17,7 @@ if (empty($GLOBALS['is_header_sent'])) {
*/
require_once './libraries/common.inc.php';
require_once './libraries/ob.lib.php';
if ($GLOBALS['cfg']['OBGzip']) {
$GLOBALS['ob_mode'] = PMA_outBufferModeGet();
if ($GLOBALS['ob_mode']) {
PMA_outBufferPre($GLOBALS['ob_mode']);
}
}
PMA_outBufferPre();
// garvin: For re-usability, moved http-headers and stylesheets
// to a seperate file. It can now be included by header.inc.php,