diff --git a/app/controllers/TracksController.php b/app/controllers/TracksController.php index 103ba197..10e074fb 100644 --- a/app/controllers/TracksController.php +++ b/app/controllers/TracksController.php @@ -76,7 +76,7 @@ $response = Response::make('', 200); - if (App::config('app.sendfile')) { + if (Config::get('app.sendfile')) { $response->header('X-Sendfile', $track->getFileFor('MP3')); } else { $response->header('X-Accel-Redirect', $track->getFileFor('MP3')); @@ -111,12 +111,12 @@ $response = Response::make('', 200); - if (App::config('app.sendfile')) { + if (Config::get('app.sendfile')) { $response->header('X-Sendfile', $track->getFileFor('MP3')); } else { $response->header('X-Accel-Redirect', $track->getFileFor('MP3')); } - + $response->header('Content-Disposition', 'attachment; filename="' . $track->getDownloadFilenameFor($formatName) . '"'); $response->header('Content-Type', $format['mime_type']);