diff --git a/core/components/mchimpx/elements/snippets/mchimpxsubscribe.snippet.php b/core/components/mchimpx/elements/snippets/mchimpxsubscribe.snippet.php index 73553ec..e5726c0 100755 --- a/core/components/mchimpx/elements/snippets/mchimpxsubscribe.snippet.php +++ b/core/components/mchimpx/elements/snippets/mchimpxsubscribe.snippet.php @@ -92,12 +92,6 @@ function parse_mchimpx(modX $modx, fiHooks $hook, array $scriptProperties) { return false; } - // Secure page? - $secure = false; - if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') { - $secure = true; - } - // load Mailchimp API try { @@ -186,7 +180,7 @@ function parse_mchimpx(modX $modx, fiHooks $hook, array $scriptProperties) { } $modx->loadClass('mailchimpx', $modx->getOption('mchimpx.core_path', null, $modx->getOption('core_path') . 'components/mchimpx/') . 'model/', true, true); - $mc = new MailchimpX($modx, $apikey, $secure); + $mc = new MailchimpX($modx, $apikey); // subscribe $modx->log(modX::LOG_LEVEL_INFO, '[mChimpX] SEND: ' . print_r($mergeValues, 1));