X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fxnet%2Fsmarty.plugins.inc.php;h=b0352a7bd46c51b9d922ce7419ec5f92c92ffddf;hb=f5c2e9c69b501b3fc0360edf7ad2fcd2a324de0f;hp=725b50feb76cd5610d92454b58aacf7f44e40d98;hpb=ae7bb1801452804bb5c01f856f2ae0a914508adc;p=platal.git diff --git a/include/xnet/smarty.plugins.inc.php b/include/xnet/smarty.plugins.inc.php index 725b50f..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 = $globals->xdb->iterRow( + $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; }