Make sure the farmOS theme is enabled. See #272

This commit is contained in:
Michael Stenta 2020-04-13 23:05:25 -04:00
parent 5c30ea34e2
commit 44684ab126
1 changed files with 10 additions and 0 deletions

View File

@ -968,6 +968,16 @@ function farm_update_7053(&$sandbox) {
}
}
/**
* Make sure the farmOS theme is enabled.
* See https://github.com/farmOS/farmOS/issues/272
*/
function farm_update_7054(&$sandbox) {
if (variable_set('theme_default', '') == 'farm_theme') {
db_query('UPDATE {system} SET status = 1 WHERE type = "theme" AND name = "farm_theme" AND status = 0');
}
}
/**
* Update helper function: enable modules.
*/