fixed bug in database manager.

This commit is contained in:
Taylor Otwell 2011-09-16 20:02:22 -05:00
parent 220c359eee
commit c3f5abc37a
1 changed files with 2 additions and 2 deletions

View File

@ -45,9 +45,9 @@ public function connection($connection = null)
// This provides the developer the maximum amount of freedom in establishing their
// database connections, and allows the framework to remain agonstic to ugly database
// specific PDO connection details. Less code. Less bugs.
$pdo = call_user_func($this->config['connectors'][$connection]);
$pdo = call_user_func($this->config['connectors'][$connection], $this->config);
$this->connections[$connection] = new Connection($pdo, $this->config));
$this->connections[$connection] = new Connection($pdo, $this->config);
}
return $this->connections[$connection];