Commit 7c38ced0 authored by Adrian Rossouw's avatar Adrian Rossouw Committed by adrian

Restart apache after deleting site

parent e0efc704
......@@ -454,9 +454,9 @@ function _provision_drupal_import_site($url) {
provision_set_active_db($db_url);
$install_profile = db_result(db_query("SELECT value FROM {variable} WHERE name='install_profile'"));
$data['site_profile'] = ($install_profile) ? unserialize($install_profile) : 'default';
$has_locale = db_result(db_query("SELECT status FROM system WHERE type='module' AND name='locale'"));
$has_locale = db_result(db_query("SELECT status FROM {system} WHERE type='module' AND name='locale'"));
if ($has_locale) {
$locale = db_result(db_query("SELECT locale FROM locales_meta WHERE isdefault=1 AND enabled=1"));
$locale = db_result(db_query("SELECT locale FROM {locales_meta} WHERE isdefault=1 AND enabled=1"));
}
$data['site_language'] = ($locale) ? ($locale) : 'en';
provision_close_active_db();
......
......@@ -219,7 +219,8 @@ function provision_apache_provision_post_install($url, &$data) {
}
function provision_apache_provision_delete($url, &$data) {
return _provision_apache_delete_vhost_config($url, $data);
_provision_apache_delete_vhost_config($url, $data);
return _provision_apache_restart_apache();
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment