Procházet zdrojové kódy

fix autoplay for visitors

Bastien Sevajol před 11 roky
rodič
revize
339c16b5d8

+ 1 - 1
src/Muzich/CoreBundle/Controller/ElementController.php Zobrazit soubor

@@ -1041,7 +1041,7 @@ class ElementController extends Controller
1041 1041
         'id_limit' => $element_id+1
1042 1042
       ));
1043 1043
       
1044
-      $elements = $search_object->getElements($this->getDoctrine(), $this->getUserId());
1044
+      $elements = $search_object->getElements($this->getDoctrine(), $this->getUserId(true));
1045 1045
     }
1046 1046
     elseif ($type == 'favorite')
1047 1047
     {

+ 5 - 3
src/Muzich/HomeBundle/Resources/views/Show/showGroup.html.twig Zobrazit soubor

@@ -75,9 +75,11 @@
75 75
   </div>
76 76
   
77 77
   {% include "MuzichCoreBundle:SearchElement:default.html.twig" with {
78
-    'no_group_name' : true,
79
-    'his_group'     : his_group,
80
-    'group'         : group
78
+    'no_group_name'    : true,
79
+    'his_group'        : his_group,
80
+    'group'            : group,
81
+    'display_autoplay' : true,
82
+    'autoplay_context' : 'show_group'
81 83
   }%}
82 84
   
83 85
   {% if more_count is defined %}