From c59c51daa07bc3918cc3a33a35dbb465f7ec8a3b Mon Sep 17 00:00:00 2001 From: nelsonlaquet Date: Mon, 2 Sep 2013 04:17:58 -0500 Subject: [PATCH] Fixed downloads --- app/controllers/TracksController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/TracksController.php b/app/controllers/TracksController.php index d89772f0..d1c1d661 100644 --- a/app/controllers/TracksController.php +++ b/app/controllers/TracksController.php @@ -131,7 +131,7 @@ ResourceLogItem::logItem('track', $id, ResourceLogItem::DOWNLOAD, $format['index']); $response = Response::make('', 200); - $filename = $track->getFileFor($format); + $filename = $track->getFileFor($formatName); if (Config::get('app.sendfile')) { $response->header('X-Sendfile', $filename);