From 73395b1bc147fd2aa940e8ea4ffdd396dfa68e1f Mon Sep 17 00:00:00 2001 From: Bedder Date: Fri, 13 Nov 2015 17:38:41 -0600 Subject: [PATCH] Update init.php --- kernel/boot/init.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/kernel/boot/init.php b/kernel/boot/init.php index 7cdf9b73..815bd18a 100644 --- a/kernel/boot/init.php +++ b/kernel/boot/init.php @@ -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);