diff --git a/src/Command/Multisite/NewCommand.php b/src/Command/Multisite/NewCommand.php index fadcaafa1..1147f400c 100644 --- a/src/Command/Multisite/NewCommand.php +++ b/src/Command/Multisite/NewCommand.php @@ -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 {