Commit 756923ed authored by Adrian Rossouw's avatar Adrian Rossouw

remove some more instances of publish_path

parent 093de6b9
......@@ -397,7 +397,7 @@ function _provision_drupal_maintain_aliases() {
}
foreach($aliases as $alias) {
if (trim($alias)) {
provision_service('file')->symlink(drush_get_option('uri'), drush_get_option('publish_path') . '/sites/' . $alias)
provision_service('file')->symlink(d()->uri, d()->root . '/sites/' . $alias)
->succeed('Created symlink for alias @target')
->fail('Could not create symlink for alias @target');
}
......@@ -421,7 +421,7 @@ function _provision_drupal_delete_aliases($aliases, $silent = false) {
}
foreach ($aliases as $alias) {
if ($alias = trim($alias)) {
provision_service('file')->unlink(drush_get_option('publish_path') . '/sites/' . $alias)
provision_service('file')->unlink(d()->root . '/sites/' . $alias)
->succeed('Removed symlink for alias @path')
->fail($error);
}
......
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