diff --git a/platform/hosting_platform.module b/platform/hosting_platform.module index b1489b5..2b4c947 100644 --- a/platform/hosting_platform.module +++ b/platform/hosting_platform.module @@ -30,7 +30,7 @@ define('HOSTING_PLATFORM_ENABLED', 1); */ function hosting_platform_menu() { $items = array(); - + $items['hosting/platforms/list'] = array( 'title' => 'List', 'type' => MENU_DEFAULT_LOCAL_TASK, @@ -443,7 +443,7 @@ function hosting_platform_insert($node) { 'vid' => $node->vid, 'nid' => $node->nid, 'publish_path' => $node->publish_path, - 'makefile' => isset($node->makefile) ? $node->makefile : '', + 'makefile' => isset($node->frommakefile['makefile']) ? $node->frommakefile['makefile'] : '', 'verified' => isset($node->verified) ? $node->verified : 0, 'web_server' => $node->web_server, 'status' => isset($node->platform_status) ? $node->platform_status : 0, @@ -473,7 +473,7 @@ function hosting_platform_update($node) { db_update('hosting_platform') ->fields(array( 'publish_path' => $node->publish_path, - 'makefile' => $node->makefile, + 'makefile' => isset($node->frommakefile['makefile']) ? $node->frommakefile['makefile'] : $node->makefile, 'web_server' => $node->web_server, 'verified' => $node->verified, 'status' => $node->platform_status,