From fc7bc9e503568faf7b666614ff2cff0124e1df63 Mon Sep 17 00:00:00 2001 From: Jayaram R Pai Date: Wed, 23 Jul 2014 16:39:32 +0530 Subject: fixed inital empty line on dep. download --- download.inc | 1 + 1 file changed, 1 insertion(+) (limited to 'download.inc') 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; } -- cgit