[9.2.04] htaccess dans temp
This commit is contained in:
parent
1a01099142
commit
e506450c7e
@ -1,5 +1,9 @@
|
||||
# Changelog
|
||||
|
||||
## Version 9.2.04
|
||||
- Correction :
|
||||
- Conserver htaccess dans le dossier temp lors du nettoyage
|
||||
|
||||
## Version 9.2.03
|
||||
- Corrections :
|
||||
- Menu fixe en dehors du site :
|
||||
|
@ -32,7 +32,7 @@ class common {
|
||||
const TEMP_DIR = 'site/tmp/';
|
||||
|
||||
// Numéro de version
|
||||
const ZWII_VERSION = '9.2.03';
|
||||
const ZWII_VERSION = '9.2.04';
|
||||
|
||||
public static $actions = [];
|
||||
public static $coreModuleIds = [
|
||||
@ -966,7 +966,10 @@ class core extends common {
|
||||
if($lastClearTmp > $this->getData(['core', 'lastClearTmp']) + 86400) {
|
||||
$iterator = new DirectoryIterator(self::TEMP_DIR);
|
||||
foreach($iterator as $fileInfos) {
|
||||
if($fileInfos->isFile() AND $fileInfos->getBasename() !== '.gitkeep') {
|
||||
if( $fileInfos->isFile() &&
|
||||
$fileInfos->getBasename() !== '.htaccess' &&
|
||||
$fileInfos->getBasename() !== '.gitkeep'
|
||||
) {
|
||||
@unlink($fileInfos->getPathname());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user