Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
Merge details:

commit b5ab4a9
Author: Jelle Sebreghts <[email protected]>
Date:   Fri Mar 10 12:41:25 2023

    Fix parse uuid for multisites
  • Loading branch information
Jelle-S committed Mar 10, 2023
2 parents bf6a0d7 + b5ab4a9 commit 20df2a2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Traits/Drupal8UtilsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ public function getSiteUuid($uri = false)
$this->say('Could not get site UUID. No webroot found.');
return false;
}

$roboSettings = $this->getConfig()->get('remote');
if (!isset($roboSettings['aliases'])) {
$settings['aliases'] = $this->handleEvent('digipolis-drupal8:parse-site-aliases', ['remoteSettings' => null]);
}
$aliases = $settings['aliases'] ?: [0 => false];
$finder = new Finder();
$subdir = ($uri ? '/' . $this->remoteHelper->parseSiteAliases()[$uri] : '');
$subdir = ($uri ? '/' . $aliases[$uri] : '');
$this->say('Searching for settings.php in ' . $webDir . '/sites' . $subdir . ' and subdirectories.');
$finder->in($webDir . '/sites' . $subdir)->files()->name('settings.php');
$config_directories = [];
Expand Down

0 comments on commit 20df2a2

Please sign in to comment.