Commit 90e95167 authored by Gábor Hojtsy's avatar Gábor Hojtsy

Issue #632080 by donquixote, mathieu, jonhattan, andypost: clone return values...

Issue #632080 by donquixote, mathieu, jonhattan, andypost: clone return values from _system_theme_data(), so modules careless about lack of object copies will not overwrite the system level cached values
parent 33993a71
......@@ -919,7 +919,13 @@ function _system_theme_data() {
$themes_info = $themes;
}
return $themes_info;
// To avoid side effects, we don't return the original objects.
$themes_info_cloned = array();
foreach ($themes_info as $key => $theme) {
$themes_info_cloned[$key] = drupal_clone($theme);
}
return $themes_info_cloned;
}
/**
......
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