[svn r13589] fix a bug when exporting in csv (due to header handlers)

skala
Eric Marguin 18 years ago
parent e5306eea74
commit cea29a7192
  1. 12
      main/mySpace/lp_tracking.php

@ -144,13 +144,23 @@ $list = learnpath :: get_flat_ordered_items_list($lp_id);
$origin = 'tracking'; $origin = 'tracking';
if($export_csv)
{
include_once('../newscorm/lp_stats.php');
ob_end_clean();
Export :: export_table_csv($csv_content, 'reporting_student');
}
else
{
ob_start(); ob_start();
include_once('../newscorm/lp_stats.php'); include_once('../newscorm/lp_stats.php');
$tracking_content = ob_get_contents(); $tracking_content = ob_get_contents();
ob_end_clean(); ob_end_clean();
echo utf8_decode($tracking_content); echo utf8_decode($tracking_content);
}
Display :: display_footer(); Display :: display_footer();
?> ?>

Loading…
Cancel
Save