X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=inline;f=include%2Fxnet%2Fglobals.inc.php;h=c4185dd7b085158b81a7cbdb32c9e689eef30b69;hb=08cce2ff528b38bde27cdec6d6bc28d6af4a42d4;hp=f57dac05eb67e32efee98026bd43f15e6f2195e3;hpb=4869f6657c664e6e968f30ea7c39c0cb7e627d3d;p=platal.git diff --git a/include/xnet/globals.inc.php b/include/xnet/globals.inc.php index f57dac0..c4185dd 100644 --- a/include/xnet/globals.inc.php +++ b/include/xnet/globals.inc.php @@ -48,7 +48,6 @@ class XnetGlobals extends PlatalGlobals if ($globals->debug & 1) { $globals->db->trace_on(); } - $globals->xdb =& new XOrgDB; } function asso($key=null) @@ -60,10 +59,10 @@ class XnetGlobals extends PlatalGlobals $gp = substr($gp, 0, strpos($gp, '/')); if ($gp) { - $res = $this->xdb->query('SELECT a.*, d.nom AS domnom - FROM groupex.asso AS a - LEFT JOIN groupex.dom AS d ON d.id = a.dom - WHERE diminutif = {?}', $gp); + $res = XDB::query('SELECT a.*, d.nom AS domnom + FROM groupex.asso AS a + LEFT JOIN groupex.dom AS d ON d.id = a.dom + WHERE diminutif = {?}', $gp); if (!($aid = $res->fetchOneAssoc())) { $aid = array(); }