Skip to content

Commit

Permalink
More work towards loading datasources
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Dec 4, 2010
1 parent 4bb6d58 commit 592abb5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Cake/Model/ConnectionManager.php
Expand Up @@ -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
*
Expand Down Expand Up @@ -101,7 +103,6 @@ public static function &getDataSource($name) {
$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;
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 592abb5

Please sign in to comment.