X-Git-Url: https://git.rapsys.eu/treebundle/blobdiff_plain/2cec3e449469a1981d46d7700ed5c9c50c242595..bb2fb7edb4c101880e4b7f5162a87c6b501a8286:/Repository/AlbumRepository.php?ds=inline diff --git a/Repository/AlbumRepository.php b/Repository/AlbumRepository.php index c1901d9..e56ae8a 100644 --- a/Repository/AlbumRepository.php +++ b/Repository/AlbumRepository.php @@ -42,7 +42,7 @@ SQL; //Set the request $req = << $data['updated'], 'modified' => $data['modified'], 'link' => $this->router->generate('rapsystree_album', ['id' => $id, 'slug' => $slug, 'path' => '/']), - 'assets' => [] + 'elements' => [] ]; - //Explode asset ids + //Explode element ids $data['s_ids'] = explode("\n", $data['s_ids']); - //Explode asset paths + //Explode element paths $data['s_paths'] = explode("\n", $data['s_paths']); foreach($data['s_ids'] as $s => $id) { - $return[$data['id']]['assets'][$id] = [ + $return[$data['id']]['elements'][$id] = [ 'id' => $id, 'path' => $path = $data['s_paths'][$s], - 'link' => $this->router->generate('rapsystree_asset', ['id' => $id, 'path' => $path]), + 'link' => $this->router->generate('rapsystree_element', ['id' => $id, 'path' => $path]), ]; } }