Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
FlightPath 7.x Changelog
========================

2026-11-10
Added new "Outdated Substitutions" report to the core stats module.


2026-11-07
Modified the Administrator's Toolbox's Courses tab, so that Name and Term are sortable
and then reverse-sortable.
Expand Down
22 changes: 22 additions & 0 deletions includes/misc.inc
Original file line number Diff line number Diff line change
Expand Up @@ -3342,6 +3342,28 @@ function get_modules_menus() {
}


/**
* Converts an array of fields into one CSV-formatted row.
*
* PHP's fputcsv() automatically encloses and escapes values containing
* delimiters, enclosure quotes, or line breaks.
*
* @param array $fields
* Field values for the row.
*
* @return string
* The CSV-formatted row, including its trailing line ending.
*/
function fp_array_to_csv_row($fields) {
$handle = fopen('php://temp', 'r+');
fputcsv($handle, $fields);
rewind($handle);
$row = stream_get_contents($handle);
fclose($handle);

return $row;
}

/**
* Simple function to left padd numbers with 0's.
* 1 becomes 001
Expand Down
Loading
Loading