summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Pugh2018-03-29 17:07:19 (GMT)
committerJon Pugh2018-03-29 17:09:31 (GMT)
commitce12a2a3676755255d4e5c1282e5d4b2b0e663e1 (patch)
tree847906364796fe273d048cd00f61d2ad394abf16
parent400af44b447220e1645f41e1ce3332e9d09f9704 (diff)
Remove check for platforms before allowing site creation, because platforms are no longer required.
-rw-r--r--src/Provision/Command/SaveCommand.php13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/Provision/Command/SaveCommand.php b/src/Provision/Command/SaveCommand.php
index c05d9e1..a763ee4 100644
--- a/src/Provision/Command/SaveCommand.php
+++ b/src/Provision/Command/SaveCommand.php
@@ -327,19 +327,6 @@ class SaveCommand extends Command
if (empty($this->input->getOption('context_type'))) {
$type_options = Context::getContextTypeOptions();
-
- // Check for platforms. If none. don't allow sites.
- $platform_exists = FALSE;
- foreach ($options as $name => $type_and_name) {
- if (strpos($type_and_name, 'platform') === 0) {
- $platform_exists = TRUE;
- }
- }
-
- if (!$platform_exists) {
- unset($type_options['site']);
- $this->io->block("You cannot add a site until you have at least one platform.");
- }
$context_type = $this->io->choice('Context Type?', $type_options);
}
else {