From 30505c209f4aaf103aa73f28f5ee3bb939c9c516 Mon Sep 17 00:00:00 2001 From: xiaomlove <353856593@qq.com> Date: Thu, 6 May 2021 13:14:22 +0800 Subject: [PATCH] update add IN_NEXUS constant --- nexus/Install/install/install.php | 1 + nexus/Install/update/update.php | 1 + 2 files changed, 2 insertions(+) diff --git a/nexus/Install/install/install.php b/nexus/Install/install/install.php index 70c7d461..ef033d47 100644 --- a/nexus/Install/install/install.php +++ b/nexus/Install/install/install.php @@ -3,6 +3,7 @@ ini_set('error_reporting', E_ALL); ini_set('display_errors', 0); $rootpath = dirname(dirname(__DIR__)) . '/'; define('ROOT_PATH', $rootpath); +define('IN_NEXUS', true); $isPost = $_SERVER['REQUEST_METHOD'] == 'POST'; require $rootpath . 'vendor/autoload.php'; require $rootpath . 'nexus/Database/helpers.php'; diff --git a/nexus/Install/update/update.php b/nexus/Install/update/update.php index af4f9bff..130ced93 100644 --- a/nexus/Install/update/update.php +++ b/nexus/Install/update/update.php @@ -3,6 +3,7 @@ ini_set('error_reporting', E_ALL); ini_set('display_errors', 0); $rootpath = dirname(dirname(__DIR__)) . '/'; define('ROOT_PATH', $rootpath); +define('IN_NEXUS', true); $isPost = $_SERVER['REQUEST_METHOD'] == 'POST'; require $rootpath . 'vendor/autoload.php'; require $rootpath . 'nexus/Database/helpers.php';