X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=plugins%2Finsert.mkStats.php;h=ba24d2ef2c5a75b80b60b33d077d62f72c9238e7;hb=434cd6ddd7e6f8b3fe277a1e7f3eeafab6832245;hp=28c930fee2a9cf00adcfe677b68c95c4feec3da3;hpb=50a40a33a496131e817df875607ea5542d096a64;p=platal.git diff --git a/plugins/insert.mkStats.php b/plugins/insert.mkStats.php index 28c930f..ba24d2e 100644 --- a/plugins/insert.mkStats.php +++ b/plugins/insert.mkStats.php @@ -31,8 +31,7 @@ */ function smarty_insert_mkStats($params, &$smarty) { - global $globals; - $res = $globals->xdb->query('select count(*) from requests'); + $res = XDB::query('select count(*) from requests'); $cnt = $res->fetchOneCell(); return ($cnt ? $cnt : '-'); }