projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
BriskDB and DBConn classes now have a static constructor method that can be failed
[brisk.git]
/
web
/
briskin5
/
statadm.php
diff --git
a/web/briskin5/statadm.php
b/web/briskin5/statadm.php
index
3c3e3e1
..
15fd27c
100644
(file)
--- a/
web/briskin5/statadm.php
+++ b/
web/briskin5/statadm.php
@@
-58,7
+58,8
@@
function main_file($curtime)
fclose($fp_start);
}
fclose($fp_start);
}
- $bdb = new BriskDB();
+ // FIXME: now create can return FALSE
+ $bdb = BriskDB::create();
$bdb->users_load();
for ($i = 0 ; $i < $bdb->count() ; $i++) {
$bdb->users_load();
for ($i = 0 ; $i < $bdb->count() ; $i++) {
@@
-210,7
+211,8
@@
function main_pgsql($curtime)
{
GLOBAL $G_dbpfx;
{
GLOBAL $G_dbpfx;
- $bdb = new BriskDB();
+ // FIXME: now create can return FALSE
+ $bdb = BriskDB::create();
$limi = array( TRI_LIMIT, MON_LIMIT, WEE_LIMIT );
$ming = array( TRI_MIN_GAMES, MON_MIN_GAMES, WEE_MIN_GAMES );
$limi = array( TRI_LIMIT, MON_LIMIT, WEE_LIMIT );
$ming = array( TRI_MIN_GAMES, MON_MIN_GAMES, WEE_MIN_GAMES );