Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / lib / Drupal / Core / Extension / ThemeInstaller.php
index 5472d3efeab826e9deee20a17af465305aaa0265..43a5469e3f4f3ce700efc8a544c8a14e51b63fd8 100644 (file)
@@ -121,9 +121,9 @@ class ThemeInstaller implements ThemeInstallerInterface {
         return TRUE;
       }
 
-      while (list($theme) = each($theme_list)) {
+      foreach ($theme_list as $theme => $value) {
         // Add dependencies to the list. The new themes will be processed as
-        // the while loop continues.
+        // the parent foreach loop continues.
         foreach (array_keys($theme_data[$theme]->requires) as $dependency) {
           if (!isset($theme_data[$dependency])) {
             // The dependency does not exist.