Skip to content
Snippets Groups Projects
Commit 2c038688 authored by Jennifer Hodgdon's avatar Jennifer Hodgdon
Browse files

Issue #2175765 by alexpott, Gábor Hojtsy: Fix comment in...

Issue #2175765 by alexpott, Gábor Hojtsy: Fix comment in system_theme_default() to not refer to obsolete function
parent 906b84a6
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
......@@ -33,7 +33,7 @@ function system_theme_default() {
// Rebuild the menu. This duplicates the menu_router_rebuild() in
// theme_enable(). However, modules must know the current default theme in
// order to use this information in hook_menu() or hook_menu_alter()
// implementations, and doing the variable_set() before the theme_enable()
// implementations, and saving the configuration before the theme_enable()
// could result in a race condition where the theme is default but not
// enabled.
\Drupal::service('router.builder')->rebuild();
......
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