Skip to content
Snippets Groups Projects
Commit bb6de899 authored by Tim Steiner's avatar Tim Steiner
Browse files

Minor fix to last commit

git-svn-id: file:///tmp/wdn_thm_drupal/trunk@241 20a16fea-79d4-4915-8869-1ea9d5ebf173
parent d7ba4664
No related branches found
No related tags found
No related merge requests found
...@@ -13,8 +13,13 @@ function unl_bootstrap() { ...@@ -13,8 +13,13 @@ function unl_bootstrap() {
$previous_conf_path = ''; $previous_conf_path = '';
$previous_script_name = ''; $previous_script_name = '';
for ($i = count($path_parts); $i > 0; $i--) { for ($i = count($path_parts); $i >= 0; $i--) {
$_SERVER['SCRIPT_NAME'] = '/' . implode('/', array_slice($path_parts, 0, $i)) . '/index.php'; if ($i == 0) {
$_SERVER['SCRIPT_NAME'] = '/index.php';
}
else {
$_SERVER['SCRIPT_NAME'] = '/' . implode('/', array_slice($path_parts, 0, $i)) . '/index.php';
}
$conf_path = conf_path(TRUE, TRUE); $conf_path = conf_path(TRUE, TRUE);
if ($previous_conf_path && ($conf_path != $previous_conf_path)) { if ($previous_conf_path && ($conf_path != $previous_conf_path)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment