Skip to content

Commit

Permalink
Moving the first database driver to the correct folder to start testing
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Dec 4, 2010
1 parent 8678661 commit be1263d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions lib/Cake/Model/ConnectionManager.php
Expand Up @@ -165,14 +165,11 @@ public static function loadDataSource($connName) {
return false;
}

if (!empty($conn['parent'])) {
$_this->loadDataSource($conn['parent']);
}

$conn = array_merge(array('plugin' => null, 'classname' => null, 'parent' => null), $conn);
$class = "{$conn['plugin']}.{$conn['classname']}";
$class = trim("{$conn['plugin']}.{$conn['classname']}", '.');

if (!App::import('Datasource', $class, !is_null($conn['plugin']))) {
App::uses($class, 'Model/Datasource');
if (class_exists($class)) {
trigger_error(sprintf(__('ConnectionManager::loadDataSource - Unable to import DataSource class %s'), $class), E_USER_ERROR);
return null;
}
Expand Down

0 comments on commit be1263d

Please sign in to comment.