Update two initial variables

This commit is contained in:
Visman 2021-01-26 22:32:34 +07:00
parent 945da6d10e
commit f4e4e51911
3 changed files with 3 additions and 5 deletions

View file

@ -53,7 +53,7 @@ $c->PUBLIC_URL = $c->BASE_URL . $forkPublicPrefix;
$c->FORK_REVISION = 33;
$c->START = $forkStart;
$c->DIR_APP = __DIR__;
$c->DIR_PUBLIC = $forkPublic;
$c->DIR_PUBLIC = __DIR__ . '/../public';
$c->DIR_CACHE = __DIR__ . '/cache';
$c->DIR_VIEWS = __DIR__ . '/templates';
$c->DIR_LANG = __DIR__ . '/lang';

View file

@ -8,8 +8,7 @@
declare(strict_types=1);
$forkStart = empty($_SERVER['REQUEST_TIME_FLOAT']) ? \microtime(true) : $_SERVER['REQUEST_TIME_FLOAT'];
$forkPublic = __DIR__ . '/public';
$forkStart = $_SERVER['REQUEST_TIME_FLOAT'] ?? \microtime(true);
$forkPublicPrefix = '/public';
require __DIR__ . '/app/bootstrap.php';

View file

@ -8,8 +8,7 @@
declare(strict_types=1);
$forkStart = empty($_SERVER['REQUEST_TIME_FLOAT']) ? \microtime(true) : $_SERVER['REQUEST_TIME_FLOAT'];
$forkPublic = __DIR__;
$forkStart = $_SERVER['REQUEST_TIME_FLOAT'] ?? \microtime(true);
$forkPublicPrefix = '';
require __DIR__ . '/../app/bootstrap.php';