Update fancytokens.php
This commit is contained in:
parent
0ad2f42fa2
commit
03c517e3aa
@ -344,10 +344,11 @@ function fancytokens_civicrm_tokens( &$tokens ){
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(!empty($tokens['communitynews'])){
|
if(!empty($tokens['communitynews'])){
|
||||||
|
/*
|
||||||
$civi_url = CRM_Utils_System::url('civicrm/example', NULL, TRUE, NULL, FALSE);
|
$civi_url = CRM_Utils_System::url('civicrm/example', NULL, TRUE, NULL, FALSE);
|
||||||
$website_host_name = parse_url( $civi_url, PHP_URL_HOST );
|
$website_host_name = parse_url( $civi_url, PHP_URL_HOST );
|
||||||
|
|
||||||
|
|
||||||
$isSecure = false;
|
$isSecure = false;
|
||||||
if (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') {
|
if (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') {
|
||||||
$isSecure = true;
|
$isSecure = true;
|
||||||
@ -356,7 +357,7 @@ if (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') {
|
|||||||
$isSecure = true;
|
$isSecure = true;
|
||||||
}
|
}
|
||||||
$protocol = $isSecure ? 'https://' : 'http://';
|
$protocol = $isSecure ? 'https://' : 'http://';
|
||||||
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
if ( array_key_exists( 'HTTPS', $_SERVER )){
|
if ( array_key_exists( 'HTTPS', $_SERVER )){
|
||||||
|
Loading…
Reference in New Issue
Block a user