Project

General

Profile

Revision 7b2d1845

Added by Assos Assos almost 4 years ago

Weekly update of contrib modules

View differences:

drupal7/sites/all/modules/webform/includes/exporters/webform_exporter_excel_delimited.inc
52 52
   */
53 53
  public function set_headers($filename) {
54 54
    drupal_add_http_header('Content-Type', 'application/x-msexcel');
55
    drupal_add_http_header('Content-Disposition', "attachment; filename=$filename.xls");
55
    drupal_add_http_header('Content-Disposition', 'attachment; filename=' . $this->get_filename($filename));
56 56
    drupal_add_http_header('Pragma', 'public');
57 57
    drupal_add_http_header('Cache-Control', 'max-age=0');
58 58
  }
59 59

  
60
  /**
61
   * {@inheritdoc}
62
   */
63
  public function get_filename($filename) {
64
    return $filename . '.xls';
65
  }
66

  
60 67
}

Also available in: Unified diff