From d0db2754eb76df8372ddfb41b3b5d4c5b09f40b3 Mon Sep 17 00:00:00 2001 From: Perttu Ehn Date: Mon, 12 Dec 2016 12:45:52 +0200 Subject: [PATCH] [multisite:new] Use correct property in example.sites.php search Use $this->appRoot, $this->root is empty, which breaks example.sites.php -file test. --- src/Command/Multisite/NewCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {