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->FORK_REVISION = 33;
$c->START = $forkStart; $c->START = $forkStart;
$c->DIR_APP = __DIR__; $c->DIR_APP = __DIR__;
$c->DIR_PUBLIC = $forkPublic; $c->DIR_PUBLIC = __DIR__ . '/../public';
$c->DIR_CACHE = __DIR__ . '/cache'; $c->DIR_CACHE = __DIR__ . '/cache';
$c->DIR_VIEWS = __DIR__ . '/templates'; $c->DIR_VIEWS = __DIR__ . '/templates';
$c->DIR_LANG = __DIR__ . '/lang'; $c->DIR_LANG = __DIR__ . '/lang';

View file

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

View file

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