|
@@ -14,7 +14,7 @@ class HomeController extends Controller
|
14
|
14
|
* d'éléments général et personalisable et de quoi ajouter un élément.
|
15
|
15
|
*
|
16
|
16
|
*/
|
17
|
|
- public function indexAction($count = null, $network = null, $login = false, $search_object = null)
|
|
17
|
+ public function indexAction($count = null, $network = null, $login = false, $search_object = null, $context = 'home')
|
18
|
18
|
{
|
19
|
19
|
if (!$search_object)
|
20
|
20
|
$search_object = $this->getElementSearcher($count);
|
|
@@ -46,7 +46,8 @@ class HomeController extends Controller
|
46
|
46
|
'from_url' => $this->getRequest()->get('from_url'),
|
47
|
47
|
'display_launch_demo' => true,
|
48
|
48
|
'login' => $login,
|
49
|
|
- 'email_token' => $this->getEmailTokenIfExist()
|
|
49
|
+ 'email_token' => $this->getEmailTokenIfExist(),
|
|
50
|
+ 'elements_context' => $context
|
50
|
51
|
));
|
51
|
52
|
}
|
52
|
53
|
|
|
@@ -55,7 +56,7 @@ class HomeController extends Controller
|
55
|
56
|
$es = $this->getNewElementSearcher();
|
56
|
57
|
$es->setNoTags();
|
57
|
58
|
$es->setIds(array($element_id));
|
58
|
|
- return $this->indexAction(null, null, false, $es);
|
|
59
|
+ return $this->indexAction(null, null, false, $es, 'one');
|
59
|
60
|
}
|
60
|
61
|
|
61
|
62
|
protected function getEmailTokenIfExist()
|