From: Nicolas Boisselier Date: Tue, 30 Aug 2016 13:24:14 +0000 (+0100) Subject: reset type on __construct X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=bdc901562272d5750f972a06a947976065d503ab;p=nb.git reset type on __construct --- diff --git a/etc/dbs/ui.php b/etc/dbs/ui.php index a148bbfc..af308515 100644 --- a/etc/dbs/ui.php +++ b/etc/dbs/ui.php @@ -2,6 +2,7 @@ $CONF['_ui'] = array( 'title' => 'Semantico UI', 'pdo' => 'sqlite:/opt/www/sem_ui/var/db/semantico.db', + #'type' => 'sqlite', 'default_table' => 'node', 'sql_replace' => function($sql) { diff --git a/lib/php/db.php b/lib/php/db.php index 2a72fe18..a26bf015 100644 --- a/lib/php/db.php +++ b/lib/php/db.php @@ -45,6 +45,7 @@ class Db extends nb { function __construct($opt = '') { # Args + self::$type = null; if ($opt==='') $opt = array(); $opt = is_scalar($opt) ? array('pdo' => $opt) : $opt;