Update step2.lib.php

Adds the welcome entry to the Author FlatPress.
Also for the static pages menu and about.

See https://github.com/flatpressblog/flatpress/issues/99#issuecomment-1159540059
This commit is contained in:
Fraenkiman 2023-03-27 01:41:31 +02:00
parent bd08207b1e
commit f12ac4cc3a

View File

@ -12,7 +12,8 @@ function check_step() {
'subject' => $vl ['entry'] ['subject'], 'subject' => $vl ['entry'] ['subject'],
'content' => $vl ['entry'] ['content'], 'content' => $vl ['entry'] ['content'],
'date' => time(), 'date' => time(),
'version' => system_ver() 'version' => system_ver(),
'author' => 'FlatPress'
)); ));
if (!static_exists('menu')) { if (!static_exists('menu')) {
@ -20,7 +21,8 @@ function check_step() {
'subject' => $vl ['menu'] ['subject'], 'subject' => $vl ['menu'] ['subject'],
'content' => $vl ['menu'] ['content'], 'content' => $vl ['menu'] ['content'],
'date' => time(), 'date' => time(),
'version' => system_ver() 'version' => system_ver(),
'author' => 'FlatPress'
), 'menu'); ), 'menu');
} }
if (!static_exists('about')) { if (!static_exists('about')) {
@ -28,7 +30,8 @@ function check_step() {
'subject' => $vl ['about'] ['subject'], 'subject' => $vl ['about'] ['subject'],
'content' => $vl ['about'] ['content'], 'content' => $vl ['about'] ['content'],
'date' => time(), 'date' => time(),
'version' => system_ver() 'version' => system_ver(),
'author' => 'FlatPress'
), 'about'); ), 'about');
} }
} }