summaryrefslogtreecommitdiff
path: root/download.inc
diff options
context:
space:
mode:
authorJayaram R Pai2014-07-23 16:39:32 +0530
committerJayaram R Pai2014-07-23 16:39:32 +0530
commitfc7bc9e503568faf7b666614ff2cff0124e1df63 (patch)
tree59d0189b9f91e969355b23cf0f31dfcb5c3bc3dd /download.inc
parenta450d04a89ece893b180817461b2351c46ea3829 (diff)
downloadscilab_textbook_companion-fc7bc9e503568faf7b666614ff2cff0124e1df63.tar.gz
scilab_textbook_companion-fc7bc9e503568faf7b666614ff2cff0124e1df63.tar.bz2
scilab_textbook_companion-fc7bc9e503568faf7b666614ff2cff0124e1df63.zip
fixed inital empty line on dep. download
Diffstat (limited to 'download.inc')
-rwxr-xr-xdownload.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/download.inc b/download.inc
index 7441442..1b27069 100755
--- a/download.inc
+++ b/download.inc
@@ -24,6 +24,7 @@ function textbook_companion_download_dependency_file()
header('Content-Type: ' . $dependency_file_data->filemime);
header('Content-disposition: attachment; filename="' . $dependency_file_data->filename . '"');
header('Content-Length: ' . filesize($root_path . $dependency_file_data->filepath));
+ ob_clean();
readfile($root_path . $dependency_file_data->filepath);
exit;
}