Skip to content

Commit 328e0b8

Browse files
rpsujmolivas
authored andcommitted
[multisite:new] Use correct property in example.sites.php search (#3007)
Use $this->appRoot, $this->root is empty, which breaks example.sites.php -file test.
1 parent 1c980c1 commit 328e0b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command/Multisite/NewCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ protected function addToSitesFile(DrupalStyle $output, $uri)
151151
throw new FileNotFoundException($this->trans('commands.multisite.new.errors.sites-invalid'));
152152
}
153153
$sites_file_contents = file_get_contents($this->appRoot . '/sites/sites.php');
154-
} elseif ($this->fs->exists($this->root . '/sites/example.sites.php')) {
154+
} elseif ($this->fs->exists($this->appRoot . '/sites/example.sites.php')) {
155155
$sites_file_contents = file_get_contents($this->appRoot . '/sites/example.sites.php');
156156
$sites_file_contents .= "\n\$sites = [];";
157157
} else {

0 commit comments

Comments
 (0)