Index: civicrm/trunk/sites/all/modules/wmf_owa/wmf_owa.module |
— | — | @@ -49,6 +49,7 @@ |
50 | 50 | * @param unknown_type $objectRef |
51 | 51 | */ |
52 | 52 | function wmf_owa_civicrm_post( $op, $objectName, $objectId, &$objectRef ) { |
| 53 | + require_once 'api/v2/Contribute.php'; |
53 | 54 | // only continue if we're handling an updated contribution |
54 | 55 | if ( $objectName != 'Contribution' || ( $objectName == 'Contribution' && $op != 'edit' ) ) { |
55 | 56 | return; |
— | — | @@ -172,7 +173,8 @@ |
173 | 174 | curl_setopt( $ch, CURLOPT_URL, $url_with_request ); |
174 | 175 | curl_setopt( $ch, CURLOPT_USERAGENT, "WMF Ecommerce web service 1.0" ); |
175 | 176 | curl_setopt( $ch, CURLINFO_HEADER_OUT, true ); // so we can track the request header |
176 | | - |
| 177 | + curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); |
| 178 | + |
177 | 179 | if ( !curl_exec( $ch )) { |
178 | 180 | // log curl error curl_error( $ch ); |
179 | 181 | watchdog( 'wmf_owa', |