Skip to content
Snippets Groups Projects
Commit 19d839e6 authored by Adam G-H's avatar Adam G-H
Browse files

typos

parent 97d70232
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !900. Comments created here will be created in the context of that merge request.
......@@ -90,8 +90,8 @@ class SiteConfigurationExcluder implements EventSubscriberInterface {
* The event being handled.
*
* @throws \Drupal\Core\File\Exception\FileException
* If the permissions of the either the live or staged `sites/default`
* cannot be determined, or cannot be changed on the staged `sites/default`.
* If the permissions of either the live or staged `sites/default` cannot
* be determined, or cannot be changed on the staged `sites/default`.
*/
public function syncDefaultSiteDirectoryPermissions(PreApplyEvent $event): void {
$staged_dir = $this->getDefaultSiteDirectoryPath($event->stage->getStageDirectory());
......@@ -104,7 +104,7 @@ class SiteConfigurationExcluder implements EventSubscriberInterface {
// This is borrowed from \Symfony\Component\Filesystem\Filesystem::copy(),
// to ensure the correct permissions are preserved (chmod() requires
// permissions to be sent as an octal number, but fileperms() returns a
// decimal number, because PHP is just great.
// decimal number, because PHP is just great).
$permissions = $this->getPermissions($staged_dir) | ($this->getPermissions($live_dir) & 0111);
if (!$this->fileSystem->chmod($staged_dir, $permissions)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment