diff --git a/core/modules/system/system.install b/core/modules/system/system.install index 8748595..809be78 100644 --- a/core/modules/system/system.install +++ b/core/modules/system/system.install @@ -1623,9 +1623,41 @@ function system_update_8013() { } /** + * @} End of "addtogroup updates-8.0.0-beta". + */ + +/** + * @addtogroup updates-8.0.0-rc + * @{ + */ + +/** + * Install the Stable base theme if needed. + */ +function system_update_8014() { + $theme_handler = \Drupal::service('theme_handler'); + if ($theme_handler->themeExists('stable')) { + return; + } + $theme_handler->refreshInfo(); + foreach ($theme_handler->listInfo() as $theme) { + // We first check that a base theme is set because if it's set to false then + // it's unset in \Drupal\Core\Extension\ThemeHandler::rebuildThemeData(). + if (isset($theme->info['base theme']) && $theme->info['base theme'] == 'stable') { + $theme_handler->install(['stable']); + return; + } + } +} + +/** + * @} End of "addtogroup updates-8.0.0-rc". + */ + +/** * Update numeric field prefix/suffix configuration. */ -function system_update_8014($sandbox) { +function system_update_8015($sandbox) { // Update prefix/suffix on numeric fields (types: float, decimal, integer) // to new format_plural_string configuration. Also update associated // formatters and widgets. @@ -1721,35 +1753,3 @@ function system_update_8014($sandbox) { } } } - -/** - * @} End of "addtogroup updates-8.0.0-beta". - */ - -/** - * @addtogroup updates-8.0.0-rc - * @{ - */ - -/** - * Install the Stable base theme if needed. - */ -function system_update_8014() { - $theme_handler = \Drupal::service('theme_handler'); - if ($theme_handler->themeExists('stable')) { - return; - } - $theme_handler->refreshInfo(); - foreach ($theme_handler->listInfo() as $theme) { - // We first check that a base theme is set because if it's set to false then - // it's unset in \Drupal\Core\Extension\ThemeHandler::rebuildThemeData(). - if (isset($theme->info['base theme']) && $theme->info['base theme'] == 'stable') { - $theme_handler->install(['stable']); - return; - } - } -} - -/** - * @} End of "addtogroup updates-8.0.0-rc". - */