Naam van downloadbestand aangepast van 6FM naar NH Gooi
This commit is contained in:
@@ -140,7 +140,7 @@ QUERY;
|
|||||||
}
|
}
|
||||||
|
|
||||||
return response()->download($podcast->getSoundfile(),
|
return response()->download($podcast->getSoundfile(),
|
||||||
'6FM Gemist - ' . str_replace('/', '-', $podcast->title) . '.mp3');
|
'NH Gooi Gemist - ' . str_replace('/', '-', $podcast->title) . '.mp3');
|
||||||
}
|
}
|
||||||
|
|
||||||
/***
|
/***
|
||||||
@@ -174,7 +174,7 @@ QUERY;
|
|||||||
public function latestNews(Request $request) {
|
public function latestNews(Request $request) {
|
||||||
$filename = '/var/audio/regionieuws.mp3';
|
$filename = '/var/audio/regionieuws.mp3';
|
||||||
return response()->download($filename,
|
return response()->download($filename,
|
||||||
'6FM Regionieuws ' . date('d-m-Y') . '.mp3');
|
'NH Gooi Regionieuws ' . date('d-m-Y') . '.mp3');
|
||||||
|
|
||||||
$size = filesize($filename);
|
$size = filesize($filename);
|
||||||
$content = fread($file, $size);
|
$content = fread($file, $size);
|
||||||
|
|||||||
Reference in New Issue
Block a user