Merged in bugfix/PMCORE-1276 (pull request #7892)
PMCORE-1276 Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
committed by
Julio Cesar Laura Avendaño
commit
4132448655
@@ -1,23 +1,22 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* ription:This is a additional configuration for load all connections; if exist in a particular proccess
|
||||
* @Date: 15-05-2008
|
||||
*
|
||||
* @author : Erik Amaru Ortiz <erik@colosa.com>
|
||||
* This is an additional configuration to load all connections if exist in a particular process
|
||||
*/
|
||||
|
||||
$dbHash = @explode( SYSTEM_HASH, G::decrypt( HASH_INSTALLATION, SYSTEM_HASH ) );
|
||||
$dbHash = @explode(SYSTEM_HASH, G::decrypt(HASH_INSTALLATION, SYSTEM_HASH));
|
||||
|
||||
$host = $dbHash[0];
|
||||
$user = $dbHash[1];
|
||||
$pass = $dbHash[2];
|
||||
$dbName = DB_NAME;
|
||||
|
||||
$pro = include (PATH_CORE . "config/databases.php");
|
||||
$pro = include(PATH_CORE . "config/databases.php");
|
||||
|
||||
$pro['datasources']['root'] = Array ();
|
||||
$pro['datasources']['root']['connection'] = "mysql://$user:$pass@$host/$dbName?encoding=utf8";
|
||||
$port = (!empty(config('database.connections.workflow.port'))) ? config('database.connections.workflow.port') : 3306;
|
||||
|
||||
$pro['datasources']['root'] = [];
|
||||
$pro['datasources']['root']['connection'] = "mysql://$user:$pass@$host:$port/$dbName?encoding=utf8";
|
||||
$pro['datasources']['root']['adapter'] = "mysql";
|
||||
|
||||
return $pro;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user