openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 02c240dc72772f5bae8daf1ba9f18f457a5f51a0
parent 54fd937cde3d4109800b1f37e09700dece59e446
Author: Jan Dankert <devnull@localhost>
Date:   Sat, 11 Nov 2017 01:24:40 +0100

Für JS und CSS das letzte Commit-Datum als Referenz für den Zeitstempel benutzen. Im Produktionsmodus ist das sinnvoll.

Diffstat:
action/IndexAction.class.php | 4++--
dispatcher.php | 3++-
version.ini | 8++++----
3 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/action/IndexAction.class.php b/action/IndexAction.class.php @@ -107,7 +107,7 @@ class IndexAction extends Action if ( DEVELOPMENT ) $this->lastModified( config('config','last_modification') ); else - $this->lastModified(config('config','last_modification',1*60*60) ); + $this->lastModified( strtotime(config('version','date')) ); header('Content-Type: text/css'); @@ -264,7 +264,7 @@ class IndexAction extends Action if ( DEVELOPMENT ) $this->lastModified( config('config','last_modification') ); else - $this->lastModified(config('config','last_modification',1*60*60) ); + $this->lastModified( strtotime(config('version','date')) ); header('Content-Type: text/javascript'); diff --git a/dispatcher.php b/dispatcher.php @@ -53,7 +53,8 @@ try $conf = Preferences::load(); - $conf['build'] = parse_ini_file('build.ini'); + $conf['build'] = parse_ini_file('build.ini' ); + $conf['version'] = parse_ini_file('version.ini'); // Sprache lesen if ( $conf['i18n']['use_http'] ) diff --git a/version.ini b/version.ini @@ -1,5 +1,5 @@ -description=Die Kennwortänderung ist in der Loginmaske und im Profil. Kann hier entfallen. -rev=3245 -node=c42e52dd7713f86326749d99c25f2f74c41929ff -date=2017-11-11 01:03 +0100 +rev=3246 +node=dfa054c6afa6492cd3d4890b187fdcbc3d5b410c +date=Sat Nov 11 01:16:15 2017 +0100 +description=Versionsdatei, die per HG-Hook erzeugt wird. author=Jan Dankert