This commit is contained in:
joyqi
2021-08-17 18:39:46 +08:00
parent 2731e34db0
commit 63dc87e7e3
+2 -2
View File
@@ -110,7 +110,7 @@ function install_get_default_options(): array {
'commentsRequireModeration' => 0,
'plugins' => 'a:0:{}',
'commentDateFormat' => 'F jS, Y \a\t h:i a',
'siteUrl' => install_get_site_url(),
'siteUrl' => install_is_cli() ? 'http://localhost' : install_get_site_url(),
'defaultCategory' => 1,
'allowRegister' => 0,
'defaultAllowComment' => 1,
@@ -303,7 +303,7 @@ function install_raise_error($error, $config = null) {
if (install_is_cli()) {
if (is_array($error)) {
foreach ($error as $key => $value) {
echo (is_int($key) ? '' : $key . ': ') . $value;
echo (is_int($key) ? '' : $key . ': ') . $value . "\n";
}
} else {
echo $error;