More work towards loading datasources

This commit is contained in:
José Lorenzo Rodríguez 2010-12-04 11:16:42 -04:30
parent 4bb6d583b7
commit 592abb569c
3 changed files with 2 additions and 1 deletions

View file

@ -20,6 +20,8 @@
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
App::uses('DataSource', 'Model/Datasource');
/**
* Manages loaded instances of DataSource objects
*
@ -101,7 +103,6 @@ class ConnectionManager {
$conn = $_this->_connectionsEnum[$name];
$class = $conn['classname'];
require LIBS . 'model' . DS . 'datasources' . DS . 'datasource.php';
if ($_this->loadDataSource($name) === null) {
trigger_error(sprintf(__("ConnectionManager::getDataSource - Could not load class %s"), $class), E_USER_ERROR);
$null = null;