summaryrefslogtreecommitdiff
path: root/lib/exe/js.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/exe/js.php')
-rw-r--r--lib/exe/js.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/exe/js.php b/lib/exe/js.php
index f79023c49..42190eac7 100644
--- a/lib/exe/js.php
+++ b/lib/exe/js.php
@@ -127,7 +127,7 @@ function js_out(){
// save cache file
io_saveFile($cache,$js);
- copy($cache,"compress.zlib://$cache.gz");
+ if(function_exists('gzopen')) io_saveFile("$cache.gz",$js);
// finally send output
if ($conf['gzip_output']) {