From e62d68b8f2a73167940e61e80cc35db6362cca63 Mon Sep 17 00:00:00 2001 From: caoyanyi Date: Thu, 30 Nov 2023 14:38:44 +0800 Subject: [PATCH] * Adjust webroot get type. --- framework/base/helper.class.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/framework/base/helper.class.php b/framework/base/helper.class.php index ba96f1b1e8..2cb58e258f 100644 --- a/framework/base/helper.class.php +++ b/framework/base/helper.class.php @@ -1083,8 +1083,6 @@ function isLocalIP() */ function getWebRoot($full = false) { - if(getenv('APP_WEB_ROOT')) return getenv('APP_WEB_ROOT'); - $path = $_SERVER['SCRIPT_NAME']; if(PHP_SAPI == 'cli')