瀏覽代碼

fix autoplay for visitors

Bastien Sevajol 11 年之前
父節點
當前提交
339c16b5d8

+ 1 - 1
src/Muzich/CoreBundle/Controller/ElementController.php 查看文件

1041
         'id_limit' => $element_id+1
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
     elseif ($type == 'favorite')
1046
     elseif ($type == 'favorite')
1047
     {
1047
     {

+ 5 - 3
src/Muzich/HomeBundle/Resources/views/Show/showGroup.html.twig 查看文件

75
   </div>
75
   </div>
76
   
76
   
77
   {% include "MuzichCoreBundle:SearchElement:default.html.twig" with {
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
   {% if more_count is defined %} 
85
   {% if more_count is defined %}