Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
ac89011b
Commit
ac89011b
authored
May 02, 2006
by
drumm
Browse files
#60457
by JonBob (slightly modified), bootstrap.inc produces [Notice] in error_log
parent
62320df6
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/bootstrap.inc
View file @
ac89011b
...
...
@@ -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'
]));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment