|
@@ -37,14 +37,15 @@ class ShowController extends Controller
|
37
|
37
|
}
|
38
|
38
|
|
39
|
39
|
return array(
|
40
|
|
- 'tags' => $tags,
|
41
|
|
- 'tags_id_json' => json_encode($tags_id),
|
42
|
|
- 'viewed_user' => $viewed_user,
|
43
|
|
- 'elements' => $search_object->getElements($this->getDoctrine(), $this->getUserId()),
|
44
|
|
- 'following' => $this->getUser()->isFollowingUserByQuery($this->getDoctrine(), $viewed_user->getId()),
|
45
|
|
- 'user' => $this->getUser(),
|
46
|
|
- 'more_count' => ($count)?$count+$this->container->getParameter('search_default_count'):$this->container->getParameter('search_default_count')*2,
|
47
|
|
- 'more_route' => 'show_user_more'
|
|
40
|
+ 'tags' => $tags,
|
|
41
|
+ 'tags_id_json' => json_encode($tags_id),
|
|
42
|
+ 'viewed_user' => $viewed_user,
|
|
43
|
+ 'elements' => $search_object->getElements($this->getDoctrine(), $this->getUserId()),
|
|
44
|
+ 'following' => $this->getUser()->isFollowingUserByQuery($this->getDoctrine(), $viewed_user->getId()),
|
|
45
|
+ 'user' => $this->getUser(),
|
|
46
|
+ 'more_count' => ($count)?$count+$this->container->getParameter('search_default_count'):$this->container->getParameter('search_default_count')*2,
|
|
47
|
+ 'more_route' => 'show_user_more',
|
|
48
|
+ 'topmenu_active' => ($viewed_user->getId() == $this->getUserId()) ? 'myfeeds' : 'public'
|
48
|
49
|
);
|
49
|
50
|
}
|
50
|
51
|
|