Skip to content

Commit

Permalink
removing broken sites.php lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Albrecht committed May 16, 2014
1 parent 3d83a3b commit 6df76df
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions includes/sitealias.inc
Original file line number Diff line number Diff line change
Expand Up @@ -374,16 +374,7 @@ function drush_sitealias_local_site_path($alias_record) {

if (isset($alias_record['root']) && !isset($alias_record['remote-host'])) {
if (isset($alias_record['uri'])) {
if (file_exists($alias_record['root'] . '/sites/sites.php')) {
$sites = array();
include($alias_record['root'] . '/sites/sites.php');
if (array_key_exists($alias_record['uri'], $sites)) {
$result = $alias_record['root'] . '/sites/' . $sites[$alias_record['uri']];
}
}
if (!$result) {
$result = ($alias_record['root'] . '/sites/' . drush_sitealias_uri_to_site_dir($alias_record['uri']));
}
$result = ($alias_record['root'] . '/sites/' . drush_sitealias_uri_to_site_dir($alias_record['uri']));
$result = realpath($result);
}
if (!$result) {
Expand Down

0 comments on commit 6df76df

Please sign in to comment.