Setup sets date and FP version for the freshly created static pages.

This commit is contained in:
azett 2020-04-16 14:15:22 +02:00
parent f9c9085135
commit e1c47d5b8c

View File

@ -1,7 +1,6 @@
<?php <?php
function check_step() { function check_step() {
global $lang; global $lang;
$validate = validate(); $validate = validate();
@ -11,19 +10,25 @@
$vl = & $lang ['samplecontent']; $vl = & $lang ['samplecontent'];
entry_save(array( entry_save(array(
'subject' => $vl ['entry'] ['subject'], 'subject' => $vl ['entry'] ['subject'],
'content' => $vl['entry']['content'] 'content' => $vl ['entry'] ['content'],
'date' => time(),
'version' => system_ver()
)); ));
if (!static_exists('menu')) { if (!static_exists('menu')) {
static_save(array( static_save(array(
'subject' => $vl ['menu'] ['subject'], 'subject' => $vl ['menu'] ['subject'],
'content' => $vl['menu']['content'] 'content' => $vl ['menu'] ['content'],
'date' => time(),
'version' => system_ver()
), 'menu'); ), 'menu');
} }
if (!static_exists('about')) { if (!static_exists('about')) {
static_save(array( static_save(array(
'subject' => $vl ['about'] ['subject'], 'subject' => $vl ['about'] ['subject'],
'content' => $vl['about']['content'] 'content' => $vl ['about'] ['content'],
'date' => time(),
'version' => system_ver()
), 'about'); ), 'about');
} }
} }