Fixes birthday calendar downloading with IE (Closes #1534).
authorStéphane Jacob <sj@m4x.org>
Wed, 21 Sep 2011 16:09:12 +0000 (18:09 +0200)
committerStéphane Jacob <sj@m4x.org>
Wed, 21 Sep 2011 16:09:12 +0000 (18:09 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
ChangeLog
modules/carnet.php

index f782f94..37fdab5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -13,6 +13,7 @@ Bug/Wish:
 
     * Core:
         - #1523: Rename AUTH_MDP to AUTH_PASSWD                            -JAC
+        - #1534: Fixes birthday calendar downloading with IE               -JAC
 
     * Email:
         - #1529: Stores and uses preferences for sending emails from site  -JAC
index 8db0fc2..d60d34d 100644 (file)
@@ -396,7 +396,7 @@ class CarnetModule extends PLModule
         } else {
             $encoding = 'utf-8';
         }
-        pl_content_headers("text/comma-separated-values;charset=".$encoding);
+        pl_cached_content_headers('text/comma-separated-values; charset=' . $encoding, 1);
     }
 
     function handler_ical(PlPage $page, PlUser $user)
@@ -409,7 +409,7 @@ class CarnetModule extends PLModule
         $profiles = $filter->iterProfiles();
         $page->assign('events', PlIteratorUtils::map($profiles, array($this, 'buildBirthRef')));
 
-        pl_content_headers("text/calendar");
+        pl_cached_content_headers('text/calendar', 1);
     }
 
     function handler_vcard($page, $photos = null)