Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
b7f47e7f
Commit
b7f47e7f
authored
Nov 05, 2009
by
Richard Mansfield
Browse files
Fix for guessing wwwroot on windows server (bug 3320)
Signed-off-by:
Richard Mansfield
<
richardm@catalyst.net.nz
>
parent
04bed9aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/init.php
View file @
b7f47e7f
...
...
@@ -166,6 +166,7 @@ if (!isset($CFG->wwwroot) && isset($_SERVER['HTTP_HOST'])) {
}
$path
=
substr
(
dirname
(
__FILE__
),
strlen
(
$_SERVER
[
'DOCUMENT_ROOT'
]));
if
(
$path
)
{
$path
=
str_replace
(
'\\'
,
'/'
,
$path
);
// windows
if
(
substr
(
$path
,
0
,
1
)
!=
'/'
)
{
$path
=
'/'
.
$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