projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix width for non-standard pages and update changelog
[platal.git]
/
plugins
/
insert.getNbIns.php
diff --git
a/plugins/insert.getNbIns.php
b/plugins/insert.getNbIns.php
index
1f9a742
..
cec99e2
100644
(file)
--- a/
plugins/insert.getNbIns.php
+++ b/
plugins/insert.getNbIns.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-200
4
Polytechnique.org *
+ * Copyright (C) 2003-200
6
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-30,8
+30,7
@@
*/
function smarty_insert_getNbIns($params, &$smarty)
{
*/
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, ",", ".");
}
$cnt = $res->fetchOneCell();
return number_format($cnt, 0, ",", ".");
}