Skip to content
Snippets Groups Projects
Commit 809fe23f authored by Laurent's avatar Laurent
Browse files

hotline #53250 : websites webthumbs: fix parsing of new Bluga server

parent 10849d18
6 merge requests!2080Sandbox detach zf from storm,!2061Master,!2015Master,!2014Master,!2013Hotline master,!2007hotline #53250 : websites webthumbs: fix parsing of new Bluga server
Pipeline #370 passed with stage
in 8 minutes and 26 seconds
- ticket #53250 : vignettes sitothèques: adaptation aux modifications d'API de Bluga.net
\ No newline at end of file
......@@ -43,9 +43,9 @@
* Fix all the bugs and make things work with any PEAR2 adapter
*
* 1.7 - 02/09/2009 - Josh
* Lots of bug fixes since the last changelog entry, added failedJobs array for tracking jobs
* Lots of bug fixes since the last changelog entry, added failedJobs array for tracking jobs
* that don't submit properly
*
*
* 1.8 - 09/09/2009 - Josh
* Bug fixes and bring PEAR2 code back in the Bluga namespace
*/
......@@ -178,7 +178,7 @@ class Bluga_Webthumb {
$request->apikey = $this->apiKey;
$request->jobs = $this->jobs;
$request->apiversion = $this->apiVersion;
$payload = $request->asXml();
$response = $this->_transmitRequest($payload);
......@@ -389,7 +389,7 @@ class Bluga_Webthumb {
if (!isset($response->headers['Content-Type'])) {
throw new Exception('No Content-Type in response.');
}
if ($response->headers['Content-Type'] != 'text/xml') {
if (false === strpos($response->headers['Content-Type'], 'text/xml')) {
throw new Exception('There was an error. Content-Type returned was '.$response->headers['Content-Type']."\n".$response);
}
......@@ -479,7 +479,7 @@ class Bluga_Webthumb {
$ext = 'png';
}
$filename .= '.'.$ext;
}
}
if (!is_null($outDir)) {
$filename = "$outDir/$filename";
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment