Skip to content

Commit

Permalink
Revert "Issue #2853160 by hgoto, RenatoG: Variable $name is defined b…
Browse files Browse the repository at this point in the history
…ut not used in file_get_content_headers()"

This reverts commit f72778c.
  • Loading branch information
DavidRothstein committed Jun 6, 2017
1 parent f72778c commit c58a1f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions includes/file.inc
Original file line number Diff line number Diff line change
Expand Up @@ -2563,6 +2563,7 @@ function file_directory_temp() {
* An associative array of headers, as expected by file_transfer().
*/
function file_get_content_headers($file) {
$name = mime_header_encode($file->filename);
$type = mime_header_encode($file->filemime);

return array(
Expand Down

0 comments on commit c58a1f1

Please sign in to comment.