Update fancytokens.php

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

View File

@ -654,9 +654,12 @@ $protocol = $isSecure ? 'https://' : 'http://';
$tmp_alias = $record->alias; $tmp_alias = $record->alias;
$tmp_nid = $record->nid; $tmp_nid = $record->nid;
if( strlen( $tmp_alias) > 0){ if( strlen( $tmp_alias) > 0){
$partial_webform_link_url = $protocol.$website_host_name."/".$tmp_alias; //$partial_webform_link_url = $protocol.$website_host_name."/".$tmp_alias;
$partial_webform_link_url = CRM_Utils_System::url($tmp_alias, "", TRUE, NULL, TRUE, TRUE);
}else{ }else{
$partial_webform_link_url = $protocol.$website_host_name."/node/".$tmp_nid; //$partial_webform_link_url = $protocol.$website_host_name."/node/".$tmp_nid;
$partial_webform_link_url = CRM_Utils_System::url("/node/".$tmp_nid , "", TRUE, NULL, TRUE, TRUE);
} }
$link_label = $tmp_title; $link_label = $tmp_title;