From 8d1711bef50a0dd75ff74cf6570939616dabe052 Mon Sep 17 00:00:00 2001 From: odain Date: Tue, 1 Sep 2026 15:01:52 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B09875=20-=20fix=20export=20from=20twig=20?= =?UTF-8?q?controller?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sources/Application/TwigBase/Controller/Controller.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sources/Application/TwigBase/Controller/Controller.php b/sources/Application/TwigBase/Controller/Controller.php index 5235cd22b6..b285cf00db 100644 --- a/sources/Application/TwigBase/Controller/Controller.php +++ b/sources/Application/TwigBase/Controller/Controller.php @@ -650,6 +650,7 @@ abstract class Controller extends AbstractController foreach ($aFiles as $sFile) { $oArchive->addFile($sFile, basename($sFile)); } + $sFilename = $oArchive->filename; $oArchive->close(); if ($bUnlinkFiles) { @@ -658,7 +659,7 @@ abstract class Controller extends AbstractController } } - $this->SendFileContent($oArchive->filename, $sDownloadArchiveName.'.zip', true, true); + $this->SendFileContent($sFilename, $sDownloadArchiveName.'.zip', true, true); } final protected function SendFileContent($sFilePath, $sDownloadArchiveName = null, $bFileTransfer = true, $bRemoveFile = false, $aHeaders = []): void