$phoneTypes = CRM_Core_OptionGroup::values('phone_type', TRUE, FALSE, FALSE, NULL, 'name');
if ($values['phone_type_id'] == CRM_Utils_Array::value('Mobile', $phoneTypes)) {
$smsParams['To'] = $values['phone'];
- } else{
+ }
+ else {
$smsParams['To'] = '';
}
- if (self::sendSMSMessage($contactId,
+ if (self::sendSMSMessage(
+ $contactId,
$tokenText,
$tokenHtml,
$smsParams,
'source_contact_id' => $mailing->scheduled_id,
// CRM-9519
'target_contact_id' => array_unique($targetParams),
- 'target_contact_id' => $targetParams,
'activity_type_id' => $activityTypeID,
'source_record_id' => $this->mailing_id,
'activity_date_time' => $job_date,
$script = get_permalink($post->ID);
}
- // when shortcode is inlcuded in page
+ // when shortcode is included in page
// also make sure we have valid query object
global $wp_query;
if ( method_exists( $wp_query, 'get' ) ) {
}
if (isset($path)) {
- if (isset($query)) {
+ if (isset($query)) {
if ($permlinkStructure != '' && ($pageID || $script != '')) {
return $script . '?page=CiviCRM&q=' . $path . $pageID . $separator . $query . $fragment;
}
}
}
else {
- if (isset($query)) {
+ if (isset($query)) {
if ($permlinkStructure != '' && ($pageID || $script != '')) {
return $script . '?' . $query . $pageID . $fragment;
}
}
}
else {
- return $base . $fragment;
- }
+ return $base . $fragment;
}
}
+ }
/**
* Authenticate the user against the wordpress db