From 8c02fed9ef262d5f5d4819bd939eb892d12b6662 Mon Sep 17 00:00:00 2001 From: devil Date: Sat, 4 Apr 2020 18:48:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=9C=8D=E5=8A=A1=E5=99=A8?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E4=B8=8E=E7=B3=BB=E7=BB=9F=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E5=86=B2=E7=AA=81=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/core.php b/public/core.php index 9ee8f2544..079e7b30e 100755 --- a/public/core.php +++ b/public/core.php @@ -43,7 +43,7 @@ define('__MY_VIEW_URL__', substr(__MY_URL__, 0, -1).$request_url); define('ROOT_PATH', str_replace('\\', DS, dirname(__FILE__)).DS); // 系统根目录 去除public -define('ROOT', str_replace('public'.DS, '', ROOT_PATH)); +define('ROOT', substr(ROOT_PATH, 0, -7)); // 定义应用目录 define('APP_PATH', ROOT.'application'.DS);