Commit 93fff2bd authored by Tobias Stoeckler's avatar Tobias Stoeckler

#855050 by Gábor Hojtsy: Avoid call-time pass by reference in libraries_detect().

parent a27f5567
......@@ -6,6 +6,7 @@ Libraries x.x-x.x, xxxx-xx-xx
Libraries 7.x-1.x, xxxx-xx-xx
-----------------------------
#855050 by Gábor Hojtsy: Avoid call-time pass by reference in libraries_detect().
#719896 by tstoeckler, sun: Added starting point for hook_libraries_info().
#743522 by sun: Ported to D7.
......
......@@ -187,8 +187,8 @@ function libraries_info($library = NULL) {
* @see libraries_info()
*/
function libraries_detect($libraries) {
foreach ($libraries as $name => $library) {
libraries_detect_library(&$libraries[$name]);
foreach ($libraries as &$library) {
libraries_detect_library($library);
}
return $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