mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2024-12-02 03:48:47 +08:00
细节优化
This commit is contained in:
parent
57e48ecbec
commit
0b724c0ffe
@ -293,6 +293,7 @@ class Behavior
|
||||
$http = empty($_SERVER['HTTPS']) ? 'http' : 'https';
|
||||
|
||||
// 根目录
|
||||
$root = '';
|
||||
if(!empty($_SERVER['SCRIPT_NAME']))
|
||||
{
|
||||
$root = substr($_SERVER['SCRIPT_NAME'], 0, strrpos($_SERVER['SCRIPT_NAME'], '/')+1);
|
||||
|
Loading…
Reference in New Issue
Block a user