commit 5192743bbd4889f63807a2421ef2165c934dc84c
parent 55a1ab60d575d4b4cb0e7c90465c43308bd62624
Author: Jan Dankert <devnull@localhost>
Date: Thu, 29 Nov 2018 00:24:22 +0100
Das Setzen des Änderungsdatums beim Veröffentlichen ist jetzt konfigurierbar.
Diffstat:
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/modules/cms-publish/Publish.class.php b/modules/cms-publish/Publish.class.php
@@ -218,8 +218,11 @@ class Publish
$this->log[] = 'destination: '.$dest;
return; // Fehler beim Kopieren, also abbrechen.
}
- if ( ! is_null($lastChangeDate) )
- @touch( $dest,$lastChangeDate );
+
+ // Das Änderungsdatum der Datei auch in der Zieldatei setzen.
+ if ( $conf['publish']['set_modification_date'] )
+ if ( ! is_null($lastChangeDate) )
+ @touch( $dest,$lastChangeDate );
Logger::debug("published: $dest");
}
diff --git a/modules/util/config-default.php b/modules/util/config-default.php
@@ -704,6 +704,7 @@ function createDefaultConfig()
$conf['publish']['ftp']['path']='';
$conf['publish']['ftp']['user']='anonymous';
$conf['publish']['ftp']['pass']='mail@example.com';
+ $conf['publish']['set_modification_date']=true;
$conf['replace'] = array();
$conf['replace']['']='0';
$conf['replace']['']='0';