Upgrade 1-11.38

This commit is contained in:
xesmyd
2026-03-30 14:10:30 +02:00
parent f2a7e6d1fc
commit ac648ef29d
24665 changed files with 69682 additions and 2205004 deletions
+5 -5
View File
@@ -211,12 +211,12 @@ $headers = [
if (isset($_GET['export'])) {
global $charset;
$spreadsheet = new PHPExcel();
$spreadsheet = new \PhpOffice\PhpSpreadsheet\Spreadsheet();
$spreadsheet->setActiveSheetIndex(0);
$worksheet = $spreadsheet->getActiveSheet();
$line = 0;
$column = 0; //skip the first column (row titles)
$line = 1;
$column = 1;
foreach ($headers as $header) {
$worksheet->setCellValueByColumnAndRow($column, $line, $header);
@@ -224,7 +224,7 @@ if (isset($_GET['export'])) {
}
$line++;
foreach ($array as $row) {
$column = 0;
$column = 1;
foreach ($row as $item) {
$worksheet->setCellValueByColumnAndRow(
$column,
@@ -238,7 +238,7 @@ if (isset($_GET['export'])) {
$line++;
$file = api_get_path(SYS_ARCHIVE_PATH).api_replace_dangerous_char($filename);
$writer = new PHPExcel_Writer_Excel2007($spreadsheet);
$writer = new \PhpOffice\PhpSpreadsheet\Writer\Xlsx($spreadsheet);
$writer->save($file);
DocumentManager::file_send_for_download($file, true, $filename);
exit;