Fix utils controllers

This commit is contained in:
Romain Neutron
2012-09-19 09:46:07 +02:00
parent afbb28a025
commit 0253dbb37f
3 changed files with 12 additions and 58 deletions

View File

@@ -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";