Jelajahi Sumber

Force download of email address export

Alan Lam 8 tahun lalu
induk
melakukan
7acc12c49f
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      controllers/users_export.php

+ 2 - 1
controllers/users_export.php

@@ -3,7 +3,8 @@
 switch($type) {
 switch($type) {
 
 
 	case "email":
 	case "email":
-		header("Content-Type: text/plain; charset=utf-8");
+		header("Content-Type: text/csv; charset=utf-8");
+		http::setDownloadHeaders("email_addresses.csv");
 
 
 		$handle = fopen("php://output", "w");
 		$handle = fopen("php://output", "w");