From fa497a9788bb2be47c5c8cc1884a1d7b802a3546 Mon Sep 17 00:00:00 2001 From: Luke Holder Date: Thu, 4 Apr 2019 00:15:53 +0800 Subject: [PATCH] The plugin could be installed from the CLI Redirects will not work from CLI. e.g `./craft install/plugin mailchimp-lists` --- src/MailchimpLists.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/MailchimpLists.php b/src/MailchimpLists.php index 95f2355..579379e 100644 --- a/src/MailchimpLists.php +++ b/src/MailchimpLists.php @@ -86,16 +86,6 @@ function (Event $event) { } ); - Event::on( - Plugins::class, - Plugins::EVENT_AFTER_INSTALL_PLUGIN, - function (PluginEvent $event) { - if ($event->plugin === $this) { - Craft::$app->getResponse()->redirect(UrlHelper::cpUrl('settings/plugins/mailchimp-lists'))->send(); - } - } - ); - Craft::info( Craft::t( 'mailchimp-lists',