Completed
Pull Request — master (#8918)
by Morris
16:27
created
apps/files_versions/download.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,11 +29,11 @@  discard block
 block discarded – undo
29 29
 OCP\JSON::checkLoggedIn();
30 30
 
31 31
 $file = $_GET['file'];
32
-$revision=(int)$_GET['revision'];
32
+$revision = (int) $_GET['revision'];
33 33
 
34 34
 try {
35 35
 	list($uid, $filename) = OCA\Files_Versions\Storage::getUidAndFilename($file);
36
-} catch(\OCP\Files\NotFoundException $e) {
36
+} catch (\OCP\Files\NotFoundException $e) {
37 37
 	header("HTTP/1.1 404 Not Found");
38 38
 	$tmpl = new OCP\Template('', '404', 'guest');
39 39
 	$tmpl->assign('file', '');
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
 header('Content-Type:'.$ftype);
51 51
 \OC_Response::setContentDispositionHeader(basename($filename), 'attachment');
52
-header('Pragma: public');// enable caching in IE
52
+header('Pragma: public'); // enable caching in IE
53 53
 header('Expires: 0');
54 54
 header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
55 55
 \OC_Response::setContentLengthHeader($view->filesize($versionName));
Please login to merge, or discard this patch.