mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
More work towards loading datasources
This commit is contained in:
parent
4bb6d583b7
commit
592abb569c
3 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue