1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40:08 +00:00

Fix compatibility with newest WCF

See WoltLab/WCF@647d232676
This commit is contained in:
Tim Düsterhus 2013-07-09 22:22:09 +02:00
parent abcae3e129
commit 0342f9fe9d

View File

@ -106,10 +106,7 @@ public function show() {
parent::show(); parent::show();
@header('Content-type: application/json'); @header('Content-type: application/json');
// enable gzip compression \wcf\util\HeaderUtil::sendNoCacheHeaders();
if (HTTP_ENABLE_GZIP && HTTP_GZIP_LEVEL > 0 && HTTP_GZIP_LEVEL < 10 && !defined('HTTP_DISABLE_GZIP')) {
\wcf\util\HeaderUtil::compressOutput();
}
$json = array('users' => array(), 'messages' => array()); $json = array('users' => array(), 'messages' => array());