summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Pugh2018-11-09 20:00:56 (GMT)
committerJon Pugh2018-11-09 20:00:56 (GMT)
commit02b0f79bca68443780755368d12a1fae57bebcff (patch)
tree29f35ef59ff8d8da08f029efd5be01b915eca3b3
parent65c3440f17ab60f8dabef02ac96912098e053924 (diff)
Issue #3012687 by Jon Pugh: Allow d() to pass through normal drush alias properties3012687-d-get-alias-props
-rw-r--r--Provision/Context.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/Provision/Context.php b/Provision/Context.php
index 228098f..7e74764 100644
--- a/Provision/Context.php
+++ b/Provision/Context.php
@@ -70,8 +70,10 @@ class Provision_Context {
// If $this->name refers to a basic drush alias (not an aegir managed site),
// and the property exists in drush alias, return it.
- elseif ($drush_alias = provision_sitealias_get_record($this->name)) { //&& isset($drush_alias[$name])) {
- return $drush_alias[$name];
+ elseif ($drush_alias = provision_sitealias_get_record($this->name)) {
+ if (isset($drush_alias[$name])) {
+ return $drush_alias[$name];
+ }
}
}