Fixes csv downloading with IE8 (Closes #1325)
authorStéphane Jacob <sj@m4x.org>
Sun, 9 Jan 2011 13:53:22 +0000 (14:53 +0100)
committerStéphane Jacob <sj@m4x.org>
Sun, 9 Jan 2011 23:52:59 +0000 (00:52 +0100)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
ChangeLog
include/userset.inc.php
modules/email.php
modules/lists.php
modules/xnetevents.php
modules/xnetgrp.php

index 350c414..1eeb79f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,7 @@ Bug/Wish:
         - #1362: List last profile modifications for secretary             -JAC
 
     * Core:
+        - #1352: Fixes csv downloading with IE8.                           -JAC
         - #1355: Mode with propagation of the skinning mode                -FRU
 
     * Payments:
index 21ad42d..11f49e4 100644 (file)
@@ -333,7 +333,7 @@ class AddressesView implements PlView
     {
         $pids = $this->set->getIds(new PlLimit());
         $visibility = new ProfileVisibility(ProfileVisibility::VIS_AX);
-        pl_content_headers('text/x-csv');
+        pl_cached_content_headers('text/x-csv', 1);
 
         $csv = fopen('php://output', 'w');
         fputcsv($csv, array('adresses'), ';');
index a632e47..b97b6c9 100644 (file)
@@ -915,7 +915,7 @@ class EmailModule extends PLModule
                 // Output the list of users with recently broken addresses,
                 // along with the count of valid redirections.
                 require_once 'notifs.inc.php';
-                pl_content_headers("text/x-csv");
+                pl_cached_content_headers('text/x-csv', 1);
 
                 $csv = fopen('php://output', 'w');
                 fputcsv($csv, array('nom', 'promo', 'alias', 'bounce', 'nbmails', 'url', 'corps', 'job', 'networking'), ';');
index 5587714..2ed4836 100644 (file)
@@ -356,7 +356,7 @@ class ListsModule extends PLModule
         $this->prepare_client($page);
         $members = $this->client->get_members($liste);
         $list = list_fetch_basic_info(list_extract_members($members[1]));
-        pl_content_headers("text/x-csv");
+        pl_cached_content_headers('text/x-csv', 1);
 
         echo "email,nom,promo\n";
         echo implode("\n", $list);
index bae5758..4b2f7d3 100644 (file)
@@ -284,7 +284,7 @@ class XnetEventsModule extends PLModule
             return PL_NOT_FOUND;
         }
 
-        pl_content_headers("text/x-csv");
+        pl_cached_content_headers('text/x-csv', 1);
         $page->changeTpl('xnetevents/csv.tpl', NO_SKIN);
 
         $admin = may_update();
index a558cbf..48e0ce8 100644 (file)
@@ -373,7 +373,7 @@ class XnetGrpModule extends PLModule
             $filename = $globals->asso('diminutif') . '.csv';
         }
         $users = $globals->asso()->getMembersFilter(null, new UFO_Name('directory_name'))->getUsers();
-        pl_content_headers("text/x-csv");
+        pl_cached_content_headers('text/x-csv', 1);
         $page->changeTpl('xnetgrp/annuaire-csv.tpl', NO_SKIN);
         $page->assign('users', $users);
     }