mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
Fix utils controllers
This commit is contained in:
@@ -39,7 +39,7 @@ class ConnectionTest implements ControllerProviderInterface
|
||||
$connection_ok = $db_ok = $is_databox = $is_appbox = $empty = false;
|
||||
|
||||
try {
|
||||
$conn = new \connection_pdo('test', $hostname, $port, $user, $password);
|
||||
$conn = new \connection_pdo('test', $hostname, $port, $user, $password, null, array(), $app['phraseanet.registry']);
|
||||
$connection_ok = true;
|
||||
} catch (\Exception $e) {
|
||||
|
||||
@@ -47,7 +47,7 @@ class ConnectionTest implements ControllerProviderInterface
|
||||
|
||||
if ($dbname && $connection_ok === true) {
|
||||
try {
|
||||
$conn = new \connection_pdo('test', $hostname, $port, $user, $password, $dbname);
|
||||
$conn = new \connection_pdo('test', $hostname, $port, $user, $password, $dbname, array(), $app['phraseanet.registry']);
|
||||
$db_ok = true;
|
||||
|
||||
$sql = "SHOW TABLE STATUS";
|
||||
|
Reference in New Issue
Block a user