You are here

function farm_update_7054 in farmOS 7

Make sure the farmOS theme is enabled.

File

./farm.install, line 997
farmOS install file.

Code

function farm_update_7054(&$sandbox) {

  // @see https://github.com/farmOS/farmOS/issues/272
  if (variable_get('theme_default', '') == 'farm_theme') {
    db_query("UPDATE {system} SET status = 1 WHERE type = 'theme' AND name = 'farm_theme' AND status = 0");
  }
}