From: Nicolas Boisselier Date: Thu, 5 Apr 2018 02:34:44 +0000 (+0100) Subject: /opt/nb/lib/php/db.php X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=dec15fb5440b874a20b40350d98bafb0bb64af57;p=nb.git /opt/nb/lib/php/db.php --- diff --git a/lib/php/db.php b/lib/php/db.php index 45a45552..fcd911ad 100644 --- a/lib/php/db.php +++ b/lib/php/db.php @@ -817,7 +817,7 @@ class Db extends nb { * @copyright NB 19.11.16 * Return a db hash to create a new instance from $conf */ - public static function conf_param_db($id) { + private static function conf_param_db($id) { if (!isset($id)) $id = self::p('db'); if (!$id or !preg_match('/^(\w+):(.*)/',$id,$m)) return []; @@ -891,8 +891,8 @@ class Db extends nb { if (isset($Table)) self::bye("Table.init(): GLOBALS['Table'] already exists !"); if (isset($Db)) self::bye("Db.init(): GLOBALS['Db'] already exists !"); $Db = new self(); - # - # Connection + + # Db Connection $Db->__construct($db); $Db->connect();