summaryrefslogtreecommitdiff
path: root/includes/bootstrap.inc
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-05-02 08:37:42 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-05-02 08:37:42 +0000
commitac89011bfdd840de49384e547885ff05f5e5d811 (patch)
tree2f6ee245bc0d14fd8abac95e881efbfe4a6ce579 /includes/bootstrap.inc
parent62320df60e725333a591cc9e5b2bcae010fb1c83 (diff)
downloadbrdo-ac89011bfdd840de49384e547885ff05f5e5d811.tar.gz
brdo-ac89011bfdd840de49384e547885ff05f5e5d811.tar.bz2
#60457 by JonBob (slightly modified), bootstrap.inc produces [Notice] in error_log
Diffstat (limited to 'includes/bootstrap.inc')
-rw-r--r--includes/bootstrap.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index 1353daa77..14b0e7907 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -156,7 +156,10 @@ function conf_init() {
if (isset($base_url)) {
// Parse fixed base URL from settings.php.
$parts = parse_url($base_url);
- $base_path = isset($parts['path']) ? $parts['path'] . '/' : '/';
+ if (!isset($parts['path'])) {
+ $parts['path'] = '';
+ }
+ $base_path = $parts['path'] . '/';
// Build $base_root (everything until first slash after "scheme://").
$base_root = substr($base_url, 0, strlen($base_url) - strlen($parts['path']));
}