summaryrefslogtreecommitdiff
path: root/public.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-03-20 14:45:43 +0400
committerAndrew Dolgov <[email protected]>2012-03-20 14:45:43 +0400
commit6a79e8afeb2038fa20796846fd1e2b64113112c3 (patch)
tree2036be10f5d4485f2d848f7f172fcde7eadbdcf4 /public.php
parent787e5ebc2101e3a207a6f4e7deffcc0a07b9e28d (diff)
only enable ob_gzhandler if it exists
Diffstat (limited to 'public.php')
-rw-r--r--public.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/public.php b/public.php
index 8ffc83224..675a9e352 100644
--- a/public.php
+++ b/public.php
@@ -1,5 +1,5 @@
<?php
- set_include_path(get_include_path() . PATH_SEPARATOR .
+ set_include_path(get_include_path() . PATH_SEPARATOR .
dirname(__FILE__) . "/include");
/* remove ill effects of magic quotes */
@@ -34,7 +34,7 @@
if (!init_connection($link)) return;
- if (ENABLE_GZIP_OUTPUT) {
+ if (ENABLE_GZIP_OUTPUT && function_exists("ob_gzhandler")) {
ob_start("ob_gzhandler");
}