Skip to content
Snippets Groups Projects
Verified Commit 96649b02 authored by Lee Rowlands's avatar Lee Rowlands
Browse files

Issue #3036962 by claudiu.cristea: Remove usage of drupal_static() from install_profile_info()

parent 7c845e13
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -1105,7 +1105,7 @@ function drupal_check_module($module) {
* The info array.
*/
function install_profile_info($profile, $langcode = 'en') {
$cache = &drupal_static(__FUNCTION__, []);
static $cache = [];
if (!isset($cache[$profile][$langcode])) {
// Set defaults for module info.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment