Commit 3d47bd5c authored by Adrian Rossouw's avatar Adrian Rossouw

Fixed site cloning. can also be done between servers now.

parent ce65c400
......@@ -4,9 +4,9 @@
function drush_hosting_clone_pre_hosting_task($task) {
$task =& drush_get_context('HOSTING_TASK');
if ($task->ref->type == 'site' && $task->task_type == 'clone') {
$task->args[2] = $task->task_args['new_name'];
$task->args[2] = '@' . $task->task_args['new_name'];
$platform = node_load($task->task_args['target_platform']);
$task->args[3] = $platform->publish_path;
$task->args[3] = hosting_context_name($platform->nid);
$profile_instance = _hosting_migrate_get_target_profile_name($task);
......
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