Index: trunk/extensions/Collection/Collection.body.php |
— | — | @@ -1148,6 +1148,12 @@ |
1149 | 1149 | header( 'Content-Length: ' . $content_length); |
1150 | 1150 | if ( $content_disposition ) { |
1151 | 1151 | header( 'Content-Disposition: ' . $content_disposition ); |
| 1152 | + } else { |
| 1153 | + $ct_enc = split( ';', $content_type ); |
| 1154 | + $ct = $ct_enc[0]; |
| 1155 | + if ( isset( $wgCollectionContentTypeToFilename[$ct] ) ) { |
| 1156 | + header( 'Content-Disposition: ' . 'inline; filename=' . $wgCollectionContentTypeToFilename[$ct] ); |
| 1157 | + } |
1152 | 1158 | } |
1153 | 1159 | fseek( $tempfile, 0 ); |
1154 | 1160 | fpassthru( $tempfile ); |