backport utilisation de google maps france au lieu de google maps monde
[platal.git] / plugins / insert.mkStats.php
index 28c930f..ba24d2e 100644 (file)
@@ -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 : '-');
 }