Commit 0aa1a6ac authored by Nigel McNie's avatar Nigel McNie
Browse files

Respect the system include path. This allows system versions of libraries to...

Respect the system include path. This allows system versions of libraries to be used if Mahara doesn't include them - e.g. when being debian packaged.
parent 89a0e816
......@@ -36,7 +36,7 @@ if (!empty($_SERVER['MAHARA_LIBDIR'])) {
else {
$CFG->libroot = dirname(__FILE__) . '/lib/';
}
set_include_path($CFG->libroot . PATH_SEPARATOR . $CFG->libroot . 'pear/');
set_include_path($CFG->libroot . PATH_SEPARATOR . $CFG->libroot . 'pear/' . PATH_SEPARATOR . get_include_path());
// Set up error handling
require('errors.php');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment