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
1466e7da
Commit
1466e7da
authored
Apr 26, 2011
by
Francois Marier
Committed by
Gerrit Code Review
Apr 26, 2011
Browse files
Merge "Add trailing slash autocorrection for wwwroot (bug #745426)"
parents
f9b061dd
577019db
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/config-dist.php
View file @
1466e7da
...
...
@@ -55,12 +55,14 @@ $cfg->dbprefix = '';
// wwwroot - the web-visible path to your Mahara installation
// Normally, this is automatically detected - if it doesn't work for you
// then try specifying it here
// This value must end with a /
//$cfg->wwwroot = 'http://myhost.com/mahara/';
// You will only need to specify this if you want to use HTTPS for
// logins, but not for regular pages. If you want to serve all of your
// Mahara content via HTTPS, just set $cfg->wwwroot to use HTTPS instead.
//$cfg->httpswwwroot = 'https://myhost.com/mahara';
// This value must end with a /
//$cfg->httpswwwroot = 'https://myhost.com/mahara/';
// dataroot - uploaded files are stored here
// This is a ABSOLUTE FILESYSTEM PATH. This is NOT a URL.
...
...
htdocs/init.php
View file @
1466e7da
...
...
@@ -185,6 +185,11 @@ if (!isset($CFG->wwwroot) && isset($_SERVER['HTTP_HOST'])) {
$CFG
->
wwwroot
=
$wwwroot
;
}
}
if
(
isset
(
$CFG
->
wwwroot
))
{
if
(
substr
(
$CFG
->
wwwroot
,
-
1
,
1
)
!=
'/'
)
{
$CFG
->
wwwroot
.
=
'/'
;
}
}
if
(
isset
(
$CFG
->
httpswwwroot
))
{
if
(
substr
(
$CFG
->
httpswwwroot
,
-
1
,
1
)
!=
'/'
)
{
$CFG
->
httpswwwroot
.
=
'/'
;
...
...
Write
Preview
Supports
Markdown
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