issue 2553 add a variable of gzhandler_enable. because of not use gzip encoding in a sydication module.

git-svn-id: http://xe-core.googlecode.com/svn/branches/luminous@11718 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
devjin 2012-10-15 12:27:36 +00:00
parent 86fb52cb72
commit 88e17793da
2 changed files with 4 additions and 1 deletions

View file

@ -27,7 +27,8 @@
(defined('__OB_GZHANDLER_ENABLE__') && __OB_GZHANDLER_ENABLE__ == 1) &&
strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')!==false &&
function_exists('ob_gzhandler') &&
extension_loaded('zlib')
extension_loaded('zlib') &&
$oModule->gzhandler_enable
) $this->gz_enabled = true;
// Extract contents to display by the request method
if(Context::get('xeVirtualRequestMethod')=='xml') {

View file

@ -30,6 +30,8 @@
var $module_config = NULL;
var $ajaxRequestMethod = array('XMLRPC', 'JSON');
var $gzhandler_enable = TRUE;
/**
* setter to set the name of module
* @param string $module name of module