projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
detail wrt double slash
[platal.git]
/
include
/
xnet
/
smarty.plugins.inc.php
diff --git
a/include/xnet/smarty.plugins.inc.php
b/include/xnet/smarty.plugins.inc.php
index
725b50f
..
b0352a7
100644
(file)
--- a/
include/xnet/smarty.plugins.inc.php
+++ b/
include/xnet/smarty.plugins.inc.php
@@
-21,22
+21,19
@@
// {{{ function list_all_my_groups
// {{{ function list_all_my_groups
-require_once $globals->spoolroot.'/plugins/function.rel.php';
-
function list_all_my_groups($params)
{
function list_all_my_groups($params)
{
- if (!logged()) {
+ if (!
S::
logged()) {
return;
}
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
"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={?}", S
ession::getInt
('uid'));
+ WHERE m.uid={?}", S
::v
('uid'));
$html = '<div>Mes groupes :</div>';
while (list($nom, $mini) = $res->next()) {
$html = '<div>Mes groupes :</div>';
while (list($nom, $mini) = $res->next()) {
- $html .= "<a class='gp' href='
".smarty_function_rel()."/$mini
'>• $nom</a>";
+ $html .= "<a class='gp' href='
$mini/
'>• $nom</a>";
}
return $html;
}
}
return $html;
}