[Fusionforge-commits] r6804 - trunk/gforge/www/pm

Roland Mas lolando at libremir.placard.fr.eu.org
Thu Jan 29 20:10:46 CET 2009


Author: lolando
Date: 2009-01-29 20:10:46 +0100 (Thu, 29 Jan 2009)
New Revision: 6804

Modified:
   trunk/gforge/www/pm/downloadcsv.php
Log:
Add a filename for CSV downloads in task manager (ported from my gforge/patches/inria/filename-for-csv-download branch)

Modified: trunk/gforge/www/pm/downloadcsv.php
===================================================================
--- trunk/gforge/www/pm/downloadcsv.php	2009-01-29 19:10:39 UTC (rev 6803)
+++ trunk/gforge/www/pm/downloadcsv.php	2009-01-29 19:10:46 UTC (rev 6804)
@@ -41,6 +41,10 @@
 require_once $gfcommon.'include/User.class.php';
 require_once $gfcommon.'pm/ProjectTaskFactory.class.php';
 
+header('Content-type: text/comma-separated-values');
+list($year,$month) = explode('-', date('Y-m'));
+header('Content-disposition: filename="task_report-'.$year.'-'.month.'.csv"');
+
 $ptf = new ProjectTaskFactory($pg);
 if (!$ptf || !is_object($ptf)) {
     exit_error('Error','Could Not Get ProjectTaskFactory');




More information about the Fusionforge-commits mailing list