From cecf54c2072dd9ad2aa7b3316e96d6d1e5d39514 Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Thu, 21 Nov 2024 15:26:13 +0000 Subject: [PATCH] [5.x] Fix multisite command not moving directories (#11105) --- src/Console/Commands/Multisite.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Console/Commands/Multisite.php b/src/Console/Commands/Multisite.php index ea872d7038..71a3e5f296 100644 --- a/src/Console/Commands/Multisite.php +++ b/src/Console/Commands/Multisite.php @@ -93,21 +93,21 @@ private function collectionsHaveBeenMoved(string $siteHandle): bool return false; } - $directory = Config::get('statamic.stache.stores.entries.directory').DIRECTORY_SEPARATOR.$collection->handle().DIRECTORY_SEPARATOR.$siteHandle; + $directory = Stache::store('entries')->directory().DIRECTORY_SEPARATOR.$collection->handle().DIRECTORY_SEPARATOR.$siteHandle; return File::isDirectory($directory); } private function globalsHaveBeenMoved(string $siteHandle): bool { - $directory = Config::get('statamic.stache.stores.globals.directory').DIRECTORY_SEPARATOR.$siteHandle; + $directory = Stache::store('globals')->directory().DIRECTORY_SEPARATOR.$siteHandle; return File::isDirectory($directory); } private function navsHaveBeenMoved(string $siteHandle): bool { - $directory = Config::get('statamic.stache.stores.navigation.directory').DIRECTORY_SEPARATOR.$siteHandle; + $directory = Stache::store('navigation')->directory().DIRECTORY_SEPARATOR.$siteHandle; return File::isDirectory($directory); } @@ -233,7 +233,7 @@ private function moveCollectionContent($collection): void { Config::set('statamic.system.multisite', false); - $base = Config::get('statamic.stache.stores.entries.directory').DIRECTORY_SEPARATOR.$collection->handle(); + $base = Stache::store('entries')->directory().DIRECTORY_SEPARATOR.$collection->handle(); File::makeDirectory("{$base}/{$this->siteHandle}");