X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Finsert.getNbIns.php;h=cec99e2cddaf630629073832f832a98a0670dc23;hb=14224ff041db96a6067c8f675e089ac24e29e965;hp=914f6a0882ff92f13ca937d0dc6961e07aecd82c;hpb=50a40a33a496131e817df875607ea5542d096a64;p=platal.git diff --git a/plugins/insert.getNbIns.php b/plugins/insert.getNbIns.php index 914f6a0..cec99e2 100644 --- a/plugins/insert.getNbIns.php +++ b/plugins/insert.getNbIns.php @@ -30,8 +30,7 @@ */ function smarty_insert_getNbIns($params, &$smarty) { - global $globals; - $res = $globals->xdb->query("SELECT COUNT(*) FROM auth_user_md5 WHERE perms IN ('admin','user') AND deces=0"); + $res = XDB::query("SELECT COUNT(*) FROM auth_user_md5 WHERE perms IN ('admin','user') AND deces=0"); $cnt = $res->fetchOneCell(); return number_format($cnt, 0, ",", "."); }