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
03abd36b
Commit
03abd36b
authored
Jun 20, 2015
by
Robert Lyon
Committed by
Gerrit Code Review
Jun 20, 2015
Browse files
Merge "Remove obsolete $_SERVER['MAHARA_LIBDIR'] option (Bug 1465882)"
parents
ac49a3e3
647b8750
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/init.php
View file @
03abd36b
...
...
@@ -20,13 +20,7 @@ $CFG->docroot = dirname(__FILE__) . DIRECTORY_SEPARATOR;
//array containing site options from database that are overrided by $CFG
$OVERRIDDEN
=
array
();
// Figure out our include path
if
(
!
empty
(
$_SERVER
[
'MAHARA_LIBDIR'
]))
{
$CFG
->
libroot
=
$_SERVER
[
'MAHARA_LIBDIR'
];
}
else
{
$CFG
->
libroot
=
dirname
(
__FILE__
)
.
DIRECTORY_SEPARATOR
.
'lib'
.
DIRECTORY_SEPARATOR
;
}
$CFG
->
libroot
=
dirname
(
__FILE__
)
.
DIRECTORY_SEPARATOR
.
'lib'
.
DIRECTORY_SEPARATOR
;
set_include_path
(
$CFG
->
libroot
.
PATH_SEPARATOR
.
$CFG
->
libroot
.
'pear/'
.
PATH_SEPARATOR
.
get_include_path
());
// Set up error handling
...
...
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