summaryrefslogtreecommitdiff
path: root/includes/bootstrap.inc
diff options
context:
space:
mode:
authorGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-04-28 11:52:31 +0000
committerGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-04-28 11:52:31 +0000
commit3f4be0d6937ef60a4f45dfe7c5e1c03b6e4ad2ee (patch)
tree95bd5230b95e2f0346efae58c2bdce2569be86a7 /includes/bootstrap.inc
parent4f7ba52bed7d222a8f4e638465f87de85093666a (diff)
downloadbrdo-3f4be0d6937ef60a4f45dfe7c5e1c03b6e4ad2ee.tar.gz
brdo-3f4be0d6937ef60a4f45dfe7c5e1c03b6e4ad2ee.tar.bz2
#60846, fix Drupal for running as CGI, patch by chx
Diffstat (limited to 'includes/bootstrap.inc')
-rw-r--r--includes/bootstrap.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index 110d496c4..1353daa77 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -116,7 +116,7 @@ function conf_path() {
}
$confdir = 'sites';
- $uri = explode('/', $_SERVER['PHP_SELF']);
+ $uri = explode('/', $_SERVER['PHP_SELF'] ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_FILENAME']);
$server = explode('.', implode('.', array_reverse(explode(':', rtrim($_SERVER['HTTP_HOST'], '.')))));
for ($i = count($uri) - 1; $i > 0; $i--) {
for ($j = count($server); $j > 0; $j--) {