mirror of
https://github.com/dg/dibi.git
synced 2025-08-06 14:16:39 +02:00
DibiConnection ensures class dibi is loaded
This commit is contained in:
@@ -62,6 +62,8 @@ class DibiConnection extends DibiObject
|
|||||||
*/
|
*/
|
||||||
public function __construct($config, $name = NULL)
|
public function __construct($config, $name = NULL)
|
||||||
{
|
{
|
||||||
|
class_exists('dibi'); // ensure class dibi is loaded
|
||||||
|
|
||||||
// DSN string
|
// DSN string
|
||||||
if (is_string($config)) {
|
if (is_string($config)) {
|
||||||
parse_str($config, $config);
|
parse_str($config, $config);
|
||||||
|
Reference in New Issue
Block a user