diff --git a/config_defaults_inc.php b/config_defaults_inc.php index a75e81715d..92acf2e7cd 100644 --- a/config_defaults_inc.php +++ b/config_defaults_inc.php @@ -126,6 +126,7 @@ $t_host = 'localhost'; } + $t_path = str_replace( basename( $_SERVER['PHP_SELF'] ), '', $_SERVER['PHP_SELF'] ); $t_path = basename( $t_path ) == "admin" ? dirname( $t_path ) . DIRECTORY_SEPARATOR : $t_path; $t_url = $t_protocol . '://' . $t_host . $t_path;