mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 22:40:39 +02:00
Fixed missing zlib extension check
git-svn-id: file:///svn/phpbb/trunk@953 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -41,11 +41,14 @@ if($board_config['gzip_compress'])
|
|||||||
{
|
{
|
||||||
if(strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip'))
|
if(strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip'))
|
||||||
{
|
{
|
||||||
$do_gzip_compress = TRUE;
|
if(extension_loaded("zlib"))
|
||||||
ob_start();
|
{
|
||||||
ob_implicit_flush(0);
|
$do_gzip_compress = TRUE;
|
||||||
|
ob_start();
|
||||||
|
ob_implicit_flush(0);
|
||||||
|
|
||||||
header("Content-Encoding: gzip");
|
header("Content-Encoding: gzip");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user