Update init.php
This commit is contained in:
parent
c31cd5f200
commit
73395b1bc1
|
@ -152,11 +152,9 @@ $base = empty( $_SERVER['SCRIPT_NAME'] ) ? $_SERVER['PHP_SELF'] : $_SERVER['SCRI
|
|||
$base = dirname($base);
|
||||
|
||||
if($base!=DS) {
|
||||
$base = $base.'/';
|
||||
}
|
||||
|
||||
if (dirname($_SERVER['SCRIPT_NAME']) == '\\') {
|
||||
$base = '/';
|
||||
$base = $base.'/';
|
||||
}else{ // work in subdomain
|
||||
$base = '/';
|
||||
}
|
||||
|
||||
define('HTML_PATH_ROOT', $base);
|
||||
|
|
Loading…
Reference in New Issue