diff --git a/core/lib/Drupal/Core/Extension/ModuleInterface.php b/core/lib/Drupal/Core/Extension/ModuleInterface.php index 8027594..76825be 100644 --- a/core/lib/Drupal/Core/Extension/ModuleInterface.php +++ b/core/lib/Drupal/Core/Extension/ModuleInterface.php @@ -10,7 +10,7 @@ /** * Common interface for module extension classes. * - * The information are coming from the $profile.info.yml file. + * The information are coming from the $module.info.yml file. */ interface ModuleInterface extends ExtensionInterface { diff --git a/core/lib/Drupal/Core/Extension/Theme.php b/core/lib/Drupal/Core/Extension/Theme.php index b85eb3f..4a65659 100644 --- a/core/lib/Drupal/Core/Extension/Theme.php +++ b/core/lib/Drupal/Core/Extension/Theme.php @@ -10,7 +10,7 @@ /** * Defines a theme extension class. * - * Parsed from a theme .info.yml file. + * Parsed from a $theme.info.yml file. * * Some possible keys: * diff --git a/core/modules/system/system.module b/core/modules/system/system.module index a197b27..bfd6a64 100644 --- a/core/modules/system/system.module +++ b/core/modules/system/system.module @@ -2290,10 +2290,10 @@ function system_get_info($type, $name = NULL) { foreach ($list as $shortname => $item) { if (!empty($item->status)) { if ($type == 'profile') { - $info[$shortname] = new Profile($info); + $info[$shortname] = new Profile($item->info); } elseif ($type == 'theme') { - $info[$shortname] = new Theme($info); + $info[$shortname] = new Theme($item->info); } } }