Bugfix in confluence upload. The bug in image reuploads is fixed in confluence 5.8

This commit is contained in:
Stéphane Goetz 2015-07-23 17:43:22 +02:00
parent aeeac7788d
commit 4fec115627

View File

@ -200,7 +200,7 @@ class Api
throw $this->handleError($e); throw $this->handleError($e);
} }
$url = "content/$id/child/attachment" . count($result['results']) ? "/{$result['results'][0]['id']}/data" : ""; $url = "content/$id/child/attachment" . (count($result['results']) ? "/{$result['results'][0]['id']}/data" : "");
try { try {
$this->getClient()->post( $this->getClient()->post(
@ -213,7 +213,5 @@ class Api
} catch (BadResponseException $e) { } catch (BadResponseException $e) {
throw $this->handleError($e); throw $this->handleError($e);
} }
//FIXME :: When doing an update, Confluence does a null pointer exception
} }
} }