From a7943ed3cf91ad33bf41a7533db4e8355743088d Mon Sep 17 00:00:00 2001 From: su Date: Fri, 20 Jul 2018 16:01:43 +0800 Subject: [PATCH] =?UTF-8?q?DIR=5FWEB=E4=BF=AE=E6=94=B9=E4=B8=BADOCUMENT=5F?= =?UTF-8?q?ROOT?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/init.php b/kernel/init.php index a42f33a..a1fdc12 100644 --- a/kernel/init.php +++ b/kernel/init.php @@ -5,7 +5,7 @@ define('DIR_ROOT', dirname(DIR_KERNEL)); -define('DIR_WEB', DIR_ROOT . DS . 'web'); +define('DIR_WEB', realpath($_SERVER['DOCUMENT_ROOT'])); define('DIR_CONFIG', DIR_ROOT . DS . 'config');