mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-26 21:37:22 +08:00
require constants first
This commit is contained in:
+1
-2
@@ -1,10 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
ini_set('date.timezone', nexus_config('nexus.timezone'));
|
|
||||||
ini_set('error_reporting', E_ALL);
|
ini_set('error_reporting', E_ALL);
|
||||||
ini_set('display_errors', 0);
|
ini_set('display_errors', 0);
|
||||||
|
|
||||||
require_once __DIR__ . '/constants.php';
|
require_once __DIR__ . '/constants.php';
|
||||||
require_once $rootpath . 'vendor/autoload.php';
|
require_once $rootpath . 'vendor/autoload.php';
|
||||||
|
ini_set('date.timezone', nexus_config('nexus.timezone'));
|
||||||
\Nexus\Nexus::boot();
|
\Nexus\Nexus::boot();
|
||||||
if (!file_exists($rootpath . '.env')) {
|
if (!file_exists($rootpath . '.env')) {
|
||||||
$installScriptRelativePath = 'install/install.php';
|
$installScriptRelativePath = 'install/install.php';
|
||||||
|
|||||||
Reference in New Issue
Block a user