Merge branch 'xorg/1.0.2/master' into xorg/master
[platal.git] / include / userset.inc.php
index 21ad42d..f99faf2 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2010 Polytechnique.org                              *
+ *  Copyright (C) 2003-2011 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -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'), ';');