openrat-cms

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

commit bff9d5e29b2e7889673484660d7255ae44df7f7f
parent f9f360e2780158be3d66825472590e5eda46a224
Author: Jan Dankert <develop@jandankert.de>
Date:   Sat, 27 Nov 2021 00:10:15 +0100

Fix: Creation time of templates and file contents should be unknown.

Diffstat:
Mmodules/cms/update/version/DBVersion000030.class.php | 2+-
Mmodules/cms/update/version/DBVersion000031.class.php | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/cms/update/version/DBVersion000030.class.php b/modules/cms/update/version/DBVersion000030.class.php @@ -42,7 +42,7 @@ class DBVersion000030 extends DbVersion $stmt = $db->sql('INSERT INTO '.$valueTable->getSqlName().' (id,contentid,active,publish,text,lastchange_date) VALUES('.$valueid.','.$contentid.',1,1,{text},{time})'); $stmt->setString( 'text', $row['text'] ); - $stmt->setInt ( 'time', Startup::getStartTime() ); + $stmt->setInt ( 'time', 0 ); $stmt->execute(); $stmt = $db->sql('UPDATE '.$templateModelTable->getSqlName().' SET contentid='.$contentid.' WHERE id='.$row['id']); diff --git a/modules/cms/update/version/DBVersion000031.class.php b/modules/cms/update/version/DBVersion000031.class.php @@ -45,7 +45,7 @@ class DBVersion000031 extends DbVersion $stmt = $db->sql('INSERT INTO '.$valueTable->getSqlName().' (id,contentid,active,publish,file,lastchange_date) VALUES('.$valueid.','.$contentid.',1,1,{file},{time})'); $stmt->setString( 'file', $row['value'] ); - $stmt->setInt ( 'time', Startup::getStartTime() ); + $stmt->setInt ( 'time', 0 ); $stmt->execute(); $stmt = $db->sql('UPDATE '.$fileTable->getSqlName().' SET contentid='.$contentid.' WHERE id='.$row['id']);