소스 검색

Force download of email address export

Alan Lam 8 년 전
부모
커밋
7acc12c49f
1개의 변경된 파일과 2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      controllers/users_export.php

+ 2 - 1
controllers/users_export.php

@@ -3,7 +3,8 @@
 switch($type) {
 
 	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");