Skip to content
Snippets Groups Projects
Commit 93fff2bd authored by Tobias Stoeckler's avatar Tobias Stoeckler
Browse files

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

parent a27f5567
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,7 @@ Libraries x.x-x.x, xxxx-xx-xx ...@@ -6,6 +6,7 @@ Libraries x.x-x.x, xxxx-xx-xx
Libraries 7.x-1.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(). #719896 by tstoeckler, sun: Added starting point for hook_libraries_info().
#743522 by sun: Ported to D7. #743522 by sun: Ported to D7.
......
...@@ -187,8 +187,8 @@ function libraries_info($library = NULL) { ...@@ -187,8 +187,8 @@ function libraries_info($library = NULL) {
* @see libraries_info() * @see libraries_info()
*/ */
function libraries_detect($libraries) { function libraries_detect($libraries) {
foreach ($libraries as $name => $library) { foreach ($libraries as &$library) {
libraries_detect_library(&$libraries[$name]); libraries_detect_library($library);
} }
return $libraries; return $libraries;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment