Update fancytokens.php

This commit is contained in:
Sarah Poger Gladstone 2019-05-29 23:39:59 -04:00 committed by GitHub
parent 0ad2f42fa2
commit 03c517e3aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -344,10 +344,11 @@ function fancytokens_civicrm_tokens( &$tokens ){
}
if(!empty($tokens['communitynews'])){
/*
$civi_url = CRM_Utils_System::url('civicrm/example', NULL, TRUE, NULL, FALSE);
$website_host_name = parse_url( $civi_url, PHP_URL_HOST );
$isSecure = false;
if (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') {
$isSecure = true;
@ -356,7 +357,7 @@ if (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') {
$isSecure = true;
}
$protocol = $isSecure ? 'https://' : 'http://';
*/
/*
if ( array_key_exists( 'HTTPS', $_SERVER )){