From f8023ff0dcc358b239b0e2b90e29fe0fd984bf83 Mon Sep 17 00:00:00 2001 From: phpnut Date: Fri, 23 Mar 2007 10:56:42 +0000 Subject: [PATCH] Added $config['database'] mysqli_connect() in DboMysqli::connect(), removed mysqli_select_db() git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4661 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/model/datasources/dbo/dbo_mysqli.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/cake/libs/model/datasources/dbo/dbo_mysqli.php b/cake/libs/model/datasources/dbo/dbo_mysqli.php index f4c923299..0882c2738 100644 --- a/cake/libs/model/datasources/dbo/dbo_mysqli.php +++ b/cake/libs/model/datasources/dbo/dbo_mysqli.php @@ -89,12 +89,7 @@ class DboMysqli extends DboSource { */ function connect() { $config = $this->config; - $this->connection = mysqli_connect($config['host'], $config['login'], $config['password'], null, $config['port']); - - if (mysqli_select_db($this->connection, $config['database'])) { - $this->connected = true; - } - + $this->connection = mysqli_connect($config['host'], $config['login'], $config['password'], $config['database'], $config['port']); return $this->connected; } /**