X-Git-Url: https://git.rapsys.eu/treebundle/blobdiff_plain/e2432989d03536f53ea8d9b6bf1cfc91c1b6077f..d1f5c6c9ff6d8e7435f0bfba5983b327c89266d4:/Repository/AlbumRepository.php?ds=sidebyside 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]), ]; } }