Remove call-time pass-by-reference code which produces fatal error with PHP>=5.4
[platal.git] / templates / gadgets / ig-search.tpl
index 88daf4a..5483e9e 100644 (file)
@@ -1,6 +1,6 @@
 {**************************************************************************}
 {*                                                                        *}
-{*  Copyright (C) 2003-2010 Polytechnique.org                             *}
+{*  Copyright (C) 2003-2013 Polytechnique.org                             *}
 {*  http://opensource.polytechnique.org/                                  *}
 {*                                                                        *}
 {*  This program is free software; you can redistribute it and/or modify  *}
 {elseif $set}
 <div class="contact-list">
 {foreach from=$set item=res}
-  {if $res.contact}
-  {include file="gadgets/ig-minifiche.tpl" c=$res show_action="retirer"}
-  {else}
-  {include file="gadgets/ig-minifiche.tpl" c=$res show_action="ajouter"}
-  {/if}
+  {include file="gadgets/ig-minifiche.tpl" profile=$res}
 {/foreach}
 </div>
 <div class="more">