X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fbriskin5%2FObj%2Fplacing.phh;fp=web%2Fbriskin5%2FObj%2Fplacing.phh;h=5e1144aeeecfd24b420d429c81203f774703893c;hb=a3111de89c89bb1a3a81e748592d26d85e4fd79d;hp=31b97a32bc3f83c677b346179ce3ef2628500112;hpb=e50ff5b78be70468c56ee5218a5ef10e60901ef7;p=brisk.git diff --git a/web/briskin5/Obj/placing.phh b/web/briskin5/Obj/placing.phh index 31b97a3..5e1144a 100644 --- a/web/briskin5/Obj/placing.phh +++ b/web/briskin5/Obj/placing.phh @@ -142,7 +142,8 @@ function placing_time_file() function placing_time_pgsql() { GLOBAL $G_dbpfx; - $bdb = new BriskDB(); + // FIXME: now create can return FALSE + $bdb = BriskDB::create(); $mti_sql = sprintf("SELECT CAST(EXTRACT(EPOCH FROM mtime) AS INTEGER) as mtime FROM %sbin5_places_mtime WHERE code = 0;", $G_dbpfx); @@ -250,8 +251,9 @@ function placing_show_file(&$user, $ty, $subty) function placing_show_pgsql(&$user, $ty, $subty) { GLOBAL $G_dbpfx; - - $bdb = new BriskDB(); + + // FIXME: now create can return FALSE + $bdb = BriskDB::create(); if ($user != FALSE) { $pla_sql = sprintf("SELECT * from %sbin5_places where type = %d AND (rank <= %d OR ucode = '%s');",