diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-05-02 08:37:42 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-05-02 08:37:42 +0000 |
commit | ac89011bfdd840de49384e547885ff05f5e5d811 (patch) | |
tree | 2f6ee245bc0d14fd8abac95e881efbfe4a6ce579 /includes/bootstrap.inc | |
parent | 62320df60e725333a591cc9e5b2bcae010fb1c83 (diff) | |
download | brdo-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.inc | 5 |
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'])); } |