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