Changeset 95510 in spip-zone
- Timestamp:
- Feb 26, 2016, 11:31:18 AM (4 years ago)
- Location:
- _plugins_/mailshot/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/mailshot/trunk/lib/mailjet-api-php/mailjet-3.php
r95507 r95510 66 66 $return = ($result===true) ? $this->_response : false; 67 67 68 if (isset($this->_response['StatusCode'])){ 68 if ($this->_error){ 69 $url_log = "api.mailjet.com/".$this->apiVersion.$this->_method; 70 spip_log("$url_log : ".$this->_error,'mailshot'._LOG_ERREUR); 71 } 72 elseif (isset($this->_response['StatusCode'])){ 69 73 $url_log = "api.mailjet.com/".$this->apiVersion.$this->_method; 70 74 spip_log("$url_log : status ".$this->_response['StatusCode']." - ".$this->_response['ErrorInfo'].", ".$this->_response['ErrorMessage'],'mailshot'._LOG_INFO_IMPORTANTE); … … 139 143 try { 140 144 if (!function_exists('recuperer_url')){ 141 $response = recuperer_page($url,false,false,null,$this->_data); 145 // en cas de DELETE on appelle directement recuperer_lapage 146 // en esperant ne pas avoir de 301 147 if (in_array($this->_request,array('DELETE'))){ 148 $response = recuperer_lapage($url,false,$this->_request,1048576,$this->_data); 149 } 150 else { 151 $response = recuperer_page($url,false,false,null,$this->_data); 152 } 142 153 if (!$response){ 143 154 $this->_error = 'erreur lors de recuperer_page sur API Mailjet '.$this->apiVersion; -
_plugins_/mailshot/trunk/paquet.xml
r95509 r95510 2 2 prefix="mailshot" 3 3 categorie="communication" 4 version="1.14. 0"4 version="1.14.1" 5 5 etat="stable" 6 6 compatibilite="[3.0.5;3.1.*]"
Note: See TracChangeset
for help on using the changeset viewer.