}
/**
- * Add the custom fields for contribution page (ie profile)
+ * Add the custom fields for contribution page (ie profile).
+ *
+ * @deprecated assigning values to smarty like this is risky because
+ * - it is hard to debug since $name is used in the assign
+ * - it is potentially 'leaky' - it's better to do this on the form
+ * or close to where it is used / required. See CRM-17519 for leakage e.g.
*
* @param int $gid
* Uf group id.
'This membership will be automatically renewed every',
'Dear Mrs. Antonia Anderson II',
'Thanks for your auto renew membership sign-up',
- ), array(
- 'First Name: Anthony',
- 'First Name: Antonia',
- 'Last Name: Anderson',
- 'Supporter Profile',
- 'Email Address: antonia_anderson@civicrm.org',
- )
- );
+ ),
+ array(
+ 'First Name: Anthony',
+ 'First Name: Antonia',
+ 'Last Name: Anderson',
+ 'Supporter Profile',
+ 'Email Address: antonia_anderson@civicrm.org',
+ ));
$mut->stop();
$mut->clearMessages();
throw new Exception("Not implementated: clearMessages for WebTest");
}
else {
- CRM_Core_DAO::executeQuery('DELETE FROM civicrm_mailing_spool ORDER BY id DESC LIMIT '. $limit);
+ CRM_Core_DAO::executeQuery('DELETE FROM civicrm_mailing_spool ORDER BY id DESC LIMIT ' . $limit);
}
}