[FEATURE] Add a timestamp when downloading an extension 69/22669/2
authorXavier Perseguers <xavier@typo3.org>
Mon, 29 Jul 2013 18:25:18 +0000 (20:25 +0200)
committerPhilipp Gampe <philipp.gampe@typo3.org>
Tue, 30 Jul 2013 01:11:16 +0000 (03:11 +0200)
When downloading an extension within the Extension Manager, a
timestamp should be automatically added to the filename.

Resolves: #50441
Releases: 6.2
Change-Id: I86c00b814715b126a655f2c73b40b955b328acff
Reviewed-on: https://review.typo3.org/22669
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
typo3/sysext/extensionmanager/Classes/Utility/FileHandlingUtility.php

index 858618c..0aed4e1 100644 (file)
@@ -338,7 +338,7 @@ class FileHandlingUtility implements \TYPO3\CMS\Core\SingletonInterface {
                        $version =  '0.0.0';
                }
 
-               $fileName = $this->getAbsolutePath('typo3temp/' . $extension . '_' . $version . '.zip');
+               $fileName = $this->getAbsolutePath('typo3temp/' . $extension . '_' . $version . '_' . date('YmdHi') . '.zip');
 
                $zip = new \ZipArchive();
                $zip->open($fileName, \ZipArchive::CREATE);