Fix calls to export_table_csv() which was replaced by arrayToCsv()

1.10.x
Yannick Warnier 10 years ago
parent 57643557fb
commit f53d157dda
  1. 6
      main/inc/lib/myspace.lib.php
  2. 2
      main/inc/lib/tracking.lib.php
  3. 2
      main/survey/reporting.php
  4. 4
      tests/main/inc/lib/export.lib.inc.test.php

@ -1485,7 +1485,7 @@ class MySpace
$csv_row[] = $last_login_date;
$csv_content[] = $csv_row;
}
Export :: export_table_csv($csv_content, 'reporting_course_overview');
Export :: arrayToCsv($csv_content, 'reporting_course_overview');
exit;
}
@ -1888,7 +1888,7 @@ class MySpace
$csv_content[] = $csv_row;
}
}
Export :: export_table_csv($csv_content, 'reporting_session_overview');
Export :: arrayToCsv($csv_content, 'reporting_session_overview');
exit;
}
@ -2069,7 +2069,7 @@ class MySpace
$csv_content[] = $csv_row;
}
}
Export :: export_table_csv($csv_content, 'reporting_user_overview');
Export :: arrayToCsv($csv_content, 'reporting_user_overview');
exit;
}

@ -1088,7 +1088,7 @@ class Tracking
);
$csv_content[] = $temp;
ob_end_clean();
Export :: export_table_csv($csv_content, 'reporting_learning_path_details');
Export :: arrayToCsv($csv_content, 'reporting_learning_path_details');
exit;
}
return $output;

@ -20,7 +20,7 @@ $survey_data = SurveyManager::get_survey($survey_id);
// Export
/**
* @todo use export_table_csv($data, $filename = 'export')
* @todo use Export::arrayToCsv($data, $filename = 'export')
*/
if (isset($_POST['export_report']) && $_POST['export_report']) {
switch ($_POST['export_format']) {

@ -15,10 +15,10 @@ class TestExport extends UnitTestCase {
}
/**
* Checks the export_table_csv method.
* Checks the arrayToCsv method.
* @todo check that a new file is created in api_get_path(SYS_ARCHIVE_PATH)
*/
function testExportTableCsv() {
function testArrayToCsv() {
$data = array();
// can only be tested if headers were not sent
ob_start();

Loading…
Cancel
Save