mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 11:33:17 +00:00
Merge branch '3.8'
Conflicts: lib/Alchemy/Phrasea/Application.php lib/Alchemy/Phrasea/Controller/Admin/Users.php lib/Alchemy/Phrasea/Setup/Version/Migration/Migration38.php tests/classes/PhraseanetPHPUnitAbstract.php tests/classes/unitTestsTest.php
This commit is contained in:
@@ -111,15 +111,16 @@ class databox extends base
|
||||
assert($sbas_id > 0);
|
||||
|
||||
$this->app = $app;
|
||||
$this->connection = connection::getPDOConnection($app, $sbas_id);
|
||||
$this->id = $sbas_id;
|
||||
|
||||
$connection_params = phrasea::sbas_params($this->app);
|
||||
|
||||
if ( ! isset($connection_params[$sbas_id])) {
|
||||
if (! isset($connection_params[$sbas_id])) {
|
||||
throw new NotFoundHttpException(sprintf('databox %d not found', $sbas_id));
|
||||
}
|
||||
|
||||
$this->connection = connection::getPDOConnection($app, $sbas_id);
|
||||
|
||||
$this->host = $connection_params[$sbas_id]['host'];
|
||||
$this->port = $connection_params[$sbas_id]['port'];
|
||||
$this->user = $connection_params[$sbas_id]['user'];
|
||||
|
Reference in New Issue
Block a user