diff --git a/kernel/boot/init.php b/kernel/boot/init.php index 8bb47f1f..ccef230e 100644 --- a/kernel/boot/init.php +++ b/kernel/boot/init.php @@ -147,13 +147,16 @@ $Parsedown = new Parsedown(); $Security = new Security(); // HTML PATHs -//$base = (dirname(getenv('SCRIPT_NAME'))==DS)?'/':dirname(getenv('SCRIPT_NAME')).'/'; $base = empty( $_SERVER['SCRIPT_NAME'] ) ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME']; $base = dirname($base); if($base!=DS) { $base = $base.'/'; } +else { + // Workaround for Windows Web Servers + $base = '/'; +} define('HTML_PATH_ROOT', $base);