X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fxnet%2Fsmarty.plugins.inc.php;h=b0352a7bd46c51b9d922ce7419ec5f92c92ffddf;hb=f5c2e9c69b501b3fc0360edf7ad2fcd2a324de0f;hp=fd1480692947600adbc1ba79caf5d9b4414ab7df;hpb=08cce2ff528b38bde27cdec6d6bc28d6af4a42d4;p=platal.git diff --git a/include/xnet/smarty.plugins.inc.php b/include/xnet/smarty.plugins.inc.php index fd14806..b0352a7 100644 --- a/include/xnet/smarty.plugins.inc.php +++ b/include/xnet/smarty.plugins.inc.php @@ -21,22 +21,19 @@ // {{{ function list_all_my_groups -require_once $globals->spoolroot.'/plugins/function.rel.php'; - function list_all_my_groups($params) { - if (!logged()) { + if (!S::logged()) { return; } - global $globals; $res = XDB::iterRow( "SELECT a.nom, a.diminutif FROM groupex.asso AS a INNER JOIN groupex.membres AS m ON m.asso_id = a.id - WHERE m.uid={?}", Session::getInt('uid')); + WHERE m.uid={?}", S::v('uid')); $html = '
Mes groupes :
'; while (list($nom, $mini) = $res->next()) { - $html .= "• $nom"; + $html .= "• $nom"; } return $html; }