Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Core/Extension/ThemeInstaller.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 7a779792577d |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
119 if (!$theme_list = array_diff_key($theme_list, $installed_themes)) { | 119 if (!$theme_list = array_diff_key($theme_list, $installed_themes)) { |
120 // Nothing to do. All themes already installed. | 120 // Nothing to do. All themes already installed. |
121 return TRUE; | 121 return TRUE; |
122 } | 122 } |
123 | 123 |
124 while (list($theme) = each($theme_list)) { | 124 foreach ($theme_list as $theme => $value) { |
125 // Add dependencies to the list. The new themes will be processed as | 125 // Add dependencies to the list. The new themes will be processed as |
126 // the while loop continues. | 126 // the parent foreach loop continues. |
127 foreach (array_keys($theme_data[$theme]->requires) as $dependency) { | 127 foreach (array_keys($theme_data[$theme]->requires) as $dependency) { |
128 if (!isset($theme_data[$dependency])) { | 128 if (!isset($theme_data[$dependency])) { |
129 // The dependency does not exist. | 129 // The dependency does not exist. |
130 return FALSE; | 130 return FALSE; |
131 } | 131 } |