- // CRM-14283 - strip protocol and domain from image URLs
- $image_type = array('image', 'thumbnail');
- foreach ($image_type as $key) {
- if (isset($params[$key]) && $params[$key]) {
- $parsedURL = explode('/', $params[$key]);
- $pathComponents = array_slice($parsedURL, 3);
- $params[$key] = '/' . implode('/', $pathComponents);
- }
- }
+ $params = array_merge(array(
+ 'id' => CRM_Utils_Array::value('premium', $ids),
+ 'image' => '',
+ 'thumbnail' => '',
+ 'is_active' => 0,
+ 'is_deductible' => FALSE,
+ 'currency' => CRM_Core_Config::singleton()->defaultCurrency,
+ ), $params);