Commit 10a175b3 authored by Tobias Stoeckler's avatar Tobias Stoeckler

#924130 by aaronbauman: Fixed libraries_get_path() should use drupal_static().

parent d8145a2d
......@@ -6,6 +6,7 @@ Libraries x.x-x.x, xxxx-xx-xx
Libraries 7.x-1.x, xxxx-xx-xx
-----------------------------
#924130 by aaronbauman: Fixed libraries_get_path() should use drupal_static().
#958162 by tstoeckler, sun: Code clean-up, tests revamp, more robust loading.
#919632 by tstoeckler, sun: Allow library information to be stored in info files.
by sun: Fixed testbot breaks upon directory name/info file name mismatch.
......
......@@ -20,7 +20,7 @@
* @ingroup libraries
*/
function libraries_get_path($library, $base_path = FALSE) {
static $libraries;
$libraries = &drupal_static(__FUNCTION__);
if (!isset($libraries)) {
$libraries = libraries_get_libraries();
......
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