细节优化
parent
57e48ecbec
commit
0b724c0ffe
|
|
@ -293,6 +293,7 @@ class Behavior
|
||||||
$http = empty($_SERVER['HTTPS']) ? 'http' : 'https';
|
$http = empty($_SERVER['HTTPS']) ? 'http' : 'https';
|
||||||
|
|
||||||
// 根目录
|
// 根目录
|
||||||
|
$root = '';
|
||||||
if(!empty($_SERVER['SCRIPT_NAME']))
|
if(!empty($_SERVER['SCRIPT_NAME']))
|
||||||
{
|
{
|
||||||
$root = substr($_SERVER['SCRIPT_NAME'], 0, strrpos($_SERVER['SCRIPT_NAME'], '/')+1);
|
$root = substr($_SERVER['SCRIPT_NAME'], 0, strrpos($_SERVER['SCRIPT_NAME'], '/')+1);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue