Skip to content

Commit

Permalink
Merge ddb18dd into 4376d4c
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-1-anderson committed Aug 22, 2018
2 parents 4376d4c + ddb18dd commit dad5a7b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/SiteAliasFileLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,10 @@ public function listAll($location = '')
* @param string $sitename The site name to return all environments for.
* @return AliasRecord[]|false
*/
public function loadMultiple($sitename)
public function loadMultiple($sitename, $location = null)
{
$result = [];
foreach ($this->discovery()->find($sitename) as $path) {
foreach ($this->discovery()->filterByLocation($location)->find($sitename) as $path) {
if ($siteData = $this->loadSiteDataFromPath($path)) {
$location = SiteAliasName::locationFromPath($path);
// Convert the raw array into a list of alias records.
Expand All @@ -180,7 +180,6 @@ public function loadMultiple($sitename)
return $result;
}


/**
* Given a location, return all alias files located there.
*
Expand Down

0 comments on commit dad5a7b

Please sign in to comment.