Commit 38e12073 authored by sun's avatar sun

#480440 by markus_petrux: Fixed base_path() not applied to default library path.

parent 498a5abf
......@@ -6,5 +6,6 @@ Libraries x.x-x.x, xxxx-xx-xx
Libraries 6.x-1.x, xxxx-xx-xx
-----------------------------
#480440 by markus_petrux: Fixed base_path() not applied to default library path.
#320562 by sun: Added basic functions.
......@@ -25,14 +25,16 @@ function libraries_get_path($library, $base_path = FALSE) {
if (!isset($libraries)) {
$libraries = libraries_get_libraries();
}
$path = ($base_path ? base_path() : '');
if (!isset($libraries[$library])) {
// Most often, external libraries can be shared across multiple sites, so
// we return sites/all/libraries as the default path.
return 'sites/all/libraries/' . $library;
$path .= 'sites/all/libraries/' . $library;
}
else {
$path .= $libraries[$library];
}
$path = ($base_path ? base_path() : '');
$path .= $libraries[$library];
return $path;
}
......
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