Bugfix in confluence upload. The bug in image reuploads is fixed in confluence 5.8
This commit is contained in:
bovenliggende
aeeac7788d
commit
4fec115627
@ -200,7 +200,7 @@ class Api
|
||||
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 {
|
||||
$this->getClient()->post(
|
||||
@ -213,7 +213,5 @@ class Api
|
||||
} catch (BadResponseException $e) {
|
||||
throw $this->handleError($e);
|
||||
}
|
||||
|
||||
//FIXME :: When doing an update, Confluence does a null pointer exception
|
||||
}
|
||||
}
|
||||
|
Laden…
Verwijs in nieuw issue
Block a user