* Adjust webroot get type.

This commit is contained in:
caoyanyi
2023-11-30 14:38:44 +08:00
parent 3c1dcc2dad
commit e62d68b8f2
-2
View File
@@ -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')