mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 15:27:42 +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:
@@ -40,6 +40,8 @@ if($board_config['gzip_compress'])
|
|||||||
else if($phpver > "4.0")
|
else if($phpver > "4.0")
|
||||||
{
|
{
|
||||||
if(strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip'))
|
if(strstr($HTTP_SERVER_VARS['HTTP_ACCEPT_ENCODING'], 'gzip'))
|
||||||
|
{
|
||||||
|
if(extension_loaded("zlib"))
|
||||||
{
|
{
|
||||||
$do_gzip_compress = TRUE;
|
$do_gzip_compress = TRUE;
|
||||||
ob_start();
|
ob_start();
|
||||||
@@ -48,6 +50,7 @@ if($board_config['gzip_compress'])
|
|||||||
header("Content-Encoding: gzip");
|
header("Content-Encoding: gzip");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$template->set_filenames(array(
|
$template->set_filenames(array(
|
||||||
|
Reference in New Issue
Block a user