summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2009-08-24 00:59:10 +0100
committerNick White <git@njw.me.uk>2009-08-24 00:59:10 +0100
commitf3201cde5f93313a8e532305e60949ca7b92c8b1 (patch)
tree1464d9bf4bdfb8095976bb10b8cc4de9a71d5fbf
parent823ab006aaa504aaaa9be5e9b5c27cbdf3df28cc (diff)
downloadnjw-website-source-f3201cde5f93313a8e532305e60949ca7b92c8b1.tar.bz2
njw-website-source-f3201cde5f93313a8e532305e60949ca7b92c8b1.zip
Smarten tarball code
-rw-r--r--includes/tarball.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/tarball.php b/includes/tarball.php
index 737aefa..151bf17 100644
--- a/includes/tarball.php
+++ b/includes/tarball.php
@@ -35,7 +35,9 @@ function return_tarball($name, $contents)
header('Pragma: public');
ob_end_flush();
- $tarball = new Archive_Tar("php://stdout", "bz2");
+ ob_start();
+ $tarball = new Archive_Tar("php://output", "bz2");
$tarball->create($contents);
+ ob_end_flush();
}