From fbb5f268cad09b53cbf871a6457f286f3467a0f8 Mon Sep 17 00:00:00 2001
From: Laurent Destailleur <eldy@users.sourceforge.net>
Date: Tue, 8 Apr 2008 02:22:03 +0000
Subject: [PATCH] New: Yeh! Now all automatic actions are externalised in
 triggers. This make code so so much easier to understand and offer a lot of
 possible new features.

---
 htdocs/comm/action/agendaexport.php | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/htdocs/comm/action/agendaexport.php b/htdocs/comm/action/agendaexport.php
index 14df8b8f245..f02e20a7da6 100644
--- a/htdocs/comm/action/agendaexport.php
+++ b/htdocs/comm/action/agendaexport.php
@@ -79,10 +79,11 @@ $agenda=new ActionComm($db);
 $result=$agenda->build_calfile($format,$type,0,$filename,$filters);
 if ($result >= 0)
 {
-	$attachment = false;
 	$encoding='UTF-8';
-	$type='text/plain';
-	//$type='text/calendar';
+	$attachment = true;
+	$type='text/calendar';
+	//$type='text/plain';		// OK
+	//$attachment = false;		// OK
 	
 	if ($encoding)   header('Content-Encoding: '.$encoding);
 	if ($type)       header('Content-Type: '.$type);
-- 
GitLab