Marius Cramer
2014-04-09 465f2bbfb524dc21021f71e78e8a2ab31a064d93
interface/lib/plugins/sites_web_vhost_subdomain_plugin.inc.php
@@ -45,6 +45,7 @@
   function sites_web_vhost_subdomain_edit($event_name, $page_form) {
      global $app, $conf;
      if(isset($page_form->dataRecord["parent_domain_id"]) && $page_form->dataRecord["parent_domain_id"] != $page_form->oldDataRecord["parent_domain_id"]) {
      // Get configuration for the web system
      $app->uses("getconf");
      $web_config = $app->getconf->get_server_config($app->functions->intval($page_form->dataRecord['server_id']), 'web');
@@ -64,5 +65,6 @@
      $sql = "UPDATE web_domain SET sys_groupid = ".$app->functions->intval($parent_domain['sys_groupid']).",system_user = '$system_user', system_group = '$system_group', document_root = '$document_root', allow_override = '$htaccess_allow_override', php_open_basedir = '$php_open_basedir'  WHERE domain_id = ".$page_form->id;
      $app->db->query($sql);
   }
   }
}