Skip to content

Commit

Permalink
[multisite:new] Use correct property in example.sites.php search (#3007)
Browse files Browse the repository at this point in the history
Use $this->appRoot, $this->root is empty, which breaks
example.sites.php -file test.
  • Loading branch information
rpsu authored and jmolivas committed Dec 17, 2016
1 parent 1c980c1 commit 328e0b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/Multisite/NewCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ protected function addToSitesFile(DrupalStyle $output, $uri)
throw new FileNotFoundException($this->trans('commands.multisite.new.errors.sites-invalid'));
}
$sites_file_contents = file_get_contents($this->appRoot . '/sites/sites.php');
} elseif ($this->fs->exists($this->root . '/sites/example.sites.php')) {
} elseif ($this->fs->exists($this->appRoot . '/sites/example.sites.php')) {
$sites_file_contents = file_get_contents($this->appRoot . '/sites/example.sites.php');
$sites_file_contents .= "\n\$sites = [];";
} else {
Expand Down

0 comments on commit 328e0b8

Please sign in to comment.