|
@@ -42,11 +42,6 @@ class VideothequeController extends AbstractController
|
|
|
public function listeParGenreAction(\App\Entity\Genre $genre, FilmRepository $repo, OptionsManager $options)
|
|
|
{
|
|
|
$films = $repo->findFilmWithGenre(array($genre->getName()));
|
|
|
- if ($this->getUser()->getProfile()->getView() === 0) {
|
|
|
- $type = "tableaux";
|
|
|
- } else {
|
|
|
- $type = "vignettes";
|
|
|
- }
|
|
|
|
|
|
return $this->render('videotheque/liste_'.$options->vue().'.html.twig', array(
|
|
|
'listeFilms' => $films,
|
|
@@ -61,12 +56,6 @@ class VideothequeController extends AbstractController
|
|
|
{
|
|
|
$films = $repo->findFilmWithReal(array($realisateur->getNomComplet()));
|
|
|
|
|
|
- if ($this->getUser()->getProfile()->getView() === 0) {
|
|
|
- $type = "tableaux";
|
|
|
- } else {
|
|
|
- $type = "vignettes";
|
|
|
- }
|
|
|
-
|
|
|
return $this->render('videotheque/liste_'.$options->vue().'.html.twig', array(
|
|
|
'listeFilms' => $films,
|
|
|
'titre' => 'Films par réalisateur : '.$realisateur->getNomComplet()
|