move csv.tpl into the right place.
authorx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sat, 15 Jul 2006 23:35:41 +0000 (23:35 +0000)
committerx2000habouzit <x2000habouzit@839d8a87-29fc-0310-9880-83ba4fa771e5>
Sat, 15 Jul 2006 23:35:41 +0000 (23:35 +0000)
also send the good encoding headers

git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@518 839d8a87-29fc-0310-9880-83ba4fa771e5

modules/xnetevents.php
templates/xnetevents/csv.tpl [moved from templates/xnet/groupe/evt-csv.tpl with 100% similarity]

index 0bbd4db..f3df668 100644 (file)
@@ -219,11 +219,11 @@ class XnetEventsModule extends PLModule
             return PL_NOT_FOUND;
         }
 
-        header('Content-type: text/x-csv');
+        header('Content-type: text/x-csv; encoding=iso-8859-1');
         header('Pragma: ');
         header('Cache-Control: ');
 
-        new_nonhtml_page('xnet/groupe/evt-csv.tpl');
+        new_nonhtml_page('xnetevents/csv.tpl');
 
         $admin = may_update();