mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Chaging array_push call for array_merge, as the first one would produce worng nested arrays in MediaView. closes #391
This commit is contained in:
parent
0f876e1a1b
commit
93ac79d4fb
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ class MediaView extends View {
|
|||
$contentTypes[0] = 'application/octetstream';
|
||||
} else if (preg_match('/MSIE ([0-9].[0-9]{1,2})/', $agent)) {
|
||||
$contentTypes[0] = 'application/force-download';
|
||||
array_push($contentTypes, array(
|
||||
array_merge($contentTypes, array(
|
||||
'application/octet-stream',
|
||||
'application/download'
|
||||
));
|
||||
|
|
Loading…
Reference in a new issue