From a3a5d0a3518639a015689290ca8b32c54cd7c854 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Thu, 29 Oct 2015 17:40:13 +1030 Subject: [PATCH] Disable extensions that require credentials by default --- src/Install/Console/InstallCommand.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Install/Console/InstallCommand.php b/src/Install/Console/InstallCommand.php index 1bd219f00..7b750a68c 100644 --- a/src/Install/Console/InstallCommand.php +++ b/src/Install/Console/InstallCommand.php @@ -325,8 +325,16 @@ class InstallCommand extends AbstractCommand $migrator = $extensions->getMigrator(); + $disabled = [ + 'flarum-akismet', + 'flarum-auth-facebook', + 'flarum-auth-github', + 'flarum-auth-twitter', + 'flarum-pusher', + ]; + foreach ($extensions->getInfo() as $name => $extension) { - if ($name === 'flarum-pusher') { + if (in_array($name, $disabled)) { continue; }