----------------------------------------
* CRM-16099: Map Profile Results Smarty error when no mapping provider is configured AND strict warning in 4.6 on mapping page
https://issues.civicrm.org/jira/browse/CRM-16099
CRM_Core_Error::statusBounce(ts('This address does not contain latitude/longitude information and cannot be mapped.'));
}
+ if (empty($config->mapProvider)) {
+ CRM_Core_Error::statusBounce(ts('You need to configure a Mapping Provider before using this feature (Administer > System Settings > Mapping and Geocoding).'));
+ }
if ($addBreadCrumb) {
$session = CRM_Core_Session::singleton();
$redirect = $session->readUserContext();
*
* @return array
*/
- public function getProfileContact($gid) {
+ public static function getProfileContact($gid) {
$session = CRM_Core_Session::singleton();
$params = $session->get('profileParams');