Update init.php
This commit is contained in:
parent
0b94955297
commit
02fef47025
@ -146,7 +146,19 @@ $Url = new Url();
|
|||||||
$Parsedown = new Parsedown();
|
$Parsedown = new Parsedown();
|
||||||
$Security = new Security();
|
$Security = new Security();
|
||||||
|
|
||||||
// Relative path logic
|
// 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.'/';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (dirname($_SERVER['SCRIPT_NAME']) == '\\') {
|
||||||
|
$base = '/';
|
||||||
|
}
|
||||||
|
|
||||||
define('HTML_PATH_ROOT', '/');
|
define('HTML_PATH_ROOT', '/');
|
||||||
|
|
||||||
// Paths for themes
|
// Paths for themes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user