cleanup in cli

This commit is contained in:
xiaomlove
2021-05-31 21:04:49 +08:00
parent f79c0a22bc
commit a6f2419c5e
4 changed files with 38 additions and 8 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ foreach ($settings as $name => $value) {
$SITENAME = $BASIC['SITENAME'];
//$BASEURL = $BASIC['BASEURL'];
$BASEURL = $_SERVER['HTTP_HOST'];
$BASEURL = $_SERVER['HTTP_HOST'] ?? '';
$announce_urls = array();
//$announce_urls[] = $BASIC['announce_url'];
$announce_urls[] = $BASEURL . '/announce.php';