Permalink
Browse files

Removed deprecated $HTTP_ACCEPT_ENCODING

  • Loading branch information...
1 parent d34b43e commit 773e1024dc752ff8abff1445913d0986195dda36 @acidvertigo acidvertigo committed Aug 15, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 catalog/includes/functions/gzip_compression.php
@@ -11,15 +11,15 @@
*/
function tep_check_gzip() {
- global $HTTP_ACCEPT_ENCODING;
+ global $_SERVER['HTTP_ACCEPT_ENCODING'];
if (headers_sent() || connection_aborted()) {
return false;
}
- if (strpos($HTTP_ACCEPT_ENCODING, 'x-gzip') !== false) return 'x-gzip';
+ if (strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'x-gzip') !== false) return 'x-gzip';
- if (strpos($HTTP_ACCEPT_ENCODING,'gzip') !== false) return 'gzip';
+ if (strpos($_SERVER['HTTP_ACCEPT_ENCODING'],'gzip') !== false) return 'gzip';
return false;
}

0 comments on commit 773e102

Please sign in to comment.