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:
José Lorenzo Rodríguez 2010-03-17 10:47:03 -04:30
parent 28cb57a92c
commit c3aec39d75

View file

@ -148,7 +148,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'
));