Commit 495507b6 authored by drumm's avatar drumm Committed by Neil Drumm

Put hosting aliases in the correct place

parent ef4ca95f
......@@ -4,12 +4,12 @@
function drush_hosting_alias_pre_hosting_task() {
if (module_exists('hosting_alias')) {
$task =& drush_get_context('HOSTING_TASK');
if (($task->ref->type == 'site') && (in_array($task->task_type, array('install', 'verify', 'migrate', 'enable')))) {
$task->options['aliases'] = implode(",", hosting_alias_get_aliases($task->ref));
if (!$task->options['aliases']) {
$task->options['no-aliases'] = 1;
if ($task->ref->type == 'site') {
$task->context_options['aliases'] = implode(',', hosting_alias_get_aliases($task->ref));
if (!$task->context_options['aliases']) {
$task->context_options['no-aliases'] = 1;
}
$task->options['redirection'] = db_result(db_query("SELECT redirection FROM {hosting_site_alias} WHERE vid=%d", $task->ref->vid));
$task->context_options['redirection'] = db_result(db_query("SELECT redirection FROM {hosting_site_alias} WHERE vid=%d", $task->ref->vid));
}
}
}
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