소스 검색

Oubil de retrait du getProfile sur les recherches

François Drouhard 3 년 전
부모
커밋
e2fbfaf19b
1개의 변경된 파일0개의 추가작업 그리고 11개의 파일을 삭제
  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()