Browse Source

Oubil de retrait du getProfile sur les recherches

François Drouhard 3 years ago
parent
commit
e2fbfaf19b
1 changed files with 0 additions and 11 deletions
  1. 0 11
      src/Controller/VideothequeController.php

+ 0 - 11
src/Controller/VideothequeController.php

@@ -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()