标准化格式

This commit is contained in:
iyuu.cn
2020-01-22 10:47:24 +08:00
parent fcb2384949
commit f3b4deae4c
5 changed files with 98 additions and 100 deletions

View File

@ -45,7 +45,7 @@ if (is_file(ROOT_PATH . "/config/sites.json")) {
require_once ROOT_PATH . '/vendor/autoload.php';
global $argv;
$start_file = str_replace("\\","/",trim($argv[0]));
if( substr($start_file,-8)==="init.php" ){
$start_file = str_replace("\\", "/", trim($argv[0]));
if (substr($start_file, -8)==="init.php") {
require_once __DIR__ . '/iyuu.php';
}