Commit 1e2fc20e authored by mig5's avatar mig5 Committed by mig5

set hosting_name to hostmaster on site node creation for the context

parent f54e0459
......@@ -159,6 +159,7 @@ function hostmaster_bootstrap() {
$node->db_server = $db_server;
$node->profile = $profile_id;
$node->import = true;
$node->hosting_name = 'hostmaster';
$node->status = 1;
......@@ -476,7 +476,7 @@ function hosting_site_insert(&$node) {
db_query("INSERT INTO {hosting_site} (vid, nid, client, db_server, platform, profile, language, last_cron, status, verified, port, `ssl`, ssl_redirect) VALUES (%d, %d, %d, %d, %d, %d, '%s', %d, %d, %d, %d, %d, %d)",
$node->vid, $node->nid, $node->client, $node->db_server, $node->platform, $node->profile, $node->site_language, $node->last_cron, $node->site_status, $node->verified, $node->port, $node->ssl, $node->ssl_redirect);
if ((!$node->old_vid)) {
hosting_context_register($node->nid, $node->title);
hosting_context_register($node->nid, ($node->hosting_name) ? $node->hosting_name : $node->title);
if ($node->import) {
hosting_add_task($node->nid, 'import');
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