Commit 8f41a527 authored by Benjamin Rousselière's avatar Benjamin Rousselière

fix/log_stream_error

parent 8d6809ad
Pipeline #7013 failed with stages
......@@ -468,14 +468,17 @@ class log implements archiveDescriptionInterface
return $path;
}
public function contents ($type, $archiveId, $resourceId) {
public function contents($type, $archiveId, $resourceId)
{
$archiveController = \laabs::newController('recordsManagement/archive');
$res = $archiveController->consultation($archiveId, $resourceId);
$stream = (stream_get_contents($res->attachment->data));
$journal = $type . PHP_EOL;
$journal .= $archiveId . ',' . $resourceId . PHP_EOL;
$journal .= base64_decode($res->attachment->data);
$journal .= $stream;
return $journal;
}
......
Markdown is supported
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