Commit 8ffa8b55 authored by Nigel McNie's avatar Nigel McNie

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 7e16aab4
......@@ -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