In libraries.module at line 33, the code assumes that you put it into sites/all/libraries directory, this is not mandatory since anyone can create his own directories structure for different purposes, so the line
$path .= 'sites/all/libraries/' . $library;
must be changed to
$path .= drupal_get_path('module', 'libraries') . '/' . $library;
| Comment | File | Size | Author |
|---|---|---|---|
| libraries_get_path.patch | 871 bytes | cristhian |
Comments
Comment #1
tstoecklerI don't quite understand your reasoning.
The path we are talking about is for a library so it must be in a sites/.../libraries directory, not in a sites/.../modules directory, which is where the libraries module is.
So this is correct:
sites/[all|]/libraries/
and this is wrong:
sites/[all]|]/modules/libraries/
Changing to support request, because I don't think there is anything to be fixed here.
Comment #2
sunYes, this issue is bogus. As the project page explains, Libraries API forms a new, central location to put and have external libraries -- next to modules and themes. Each library must be understood like a single module or a single theme; each one of them is self-contained, is an own project and has an own version.