Skip to content
Snippets Groups Projects
Commit b331196e authored by Ariel Barreiro's avatar Ariel Barreiro Committed by Bram Goffings
Browse files

Issue #2867499 by hanoii, maxilein: Updating to 3.0 broked my site

parent a817100b
No related branches found
Tags 8.x-3.0-beta2
No related merge requests found
......@@ -59,3 +59,12 @@ function ds_update_8003() {
\Drupal::service('module_installer')->install(['layout_discovery'], FALSE);
}
}
/**
* Makes sure Layout Discovery is enabled on update, as 8003 could have failed to do so.
*/
function ds_update_8004() {
if (!\Drupal::moduleHandler()->moduleExists('layout_discovery')) {
\Drupal::service('module_installer')->install(['layout_discovery'], FALSE);
}
}
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