From 97da61260491ebebad41debd94a1a4921b839b7d Mon Sep 17 00:00:00 2001 From: David Grudl Date: Tue, 3 Aug 2010 00:45:52 +0200 Subject: [PATCH] DibiConnection: driver name is case insensitive --- dibi/libs/DibiConnection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dibi/libs/DibiConnection.php b/dibi/libs/DibiConnection.php index 1fcefc0c..38e83889 100644 --- a/dibi/libs/DibiConnection.php +++ b/dibi/libs/DibiConnection.php @@ -78,7 +78,7 @@ class DibiConnection extends DibiObject $config['driver'] = dibi::$defaultDriver; } - $driver = preg_replace('#[^a-z0-9_]#', '_', $config['driver']); + $driver = preg_replace('#[^a-z0-9_]#', '_', strtolower($config['driver'])); $class = "Dibi" . $driver . "Driver"; if (!class_exists($class, FALSE)) { include_once dirname(__FILE__) . "/../drivers/$driver.php";