code and comments cleanup

This commit is contained in:
Marc Delisle
2010-07-29 10:23:45 -04:00
parent c1bf8133cd
commit 3e666e94de

View File

@@ -141,13 +141,13 @@ function checkBLOBStreamingPlugins()
if (function_exists("pbms_connection_pool_size")) { if (function_exists("pbms_connection_pool_size")) {
if ( isset($PMA_Config->settings['pbms_connection_pool_size'])) { if ( isset($PMA_Config->settings['pbms_connection_pool_size'])) {
$pool_size = $PMA_Config->settings['pbms_connection_pool_size']; $pool_size = $PMA_Config->settings['pbms_connection_pool_size'];
if ($pool_size == "") if ($pool_size == "") {
$pool_size = 1; $pool_size = 1;
} else { }
} else {
$pool_size = 1; $pool_size = 1;
} }
pbms_connection_pool_size($pool_size);
pbms_connection_pool_size($pool_size);
} }
// get BS server port // get BS server port
@@ -180,7 +180,7 @@ function checkBLOBStreamingPlugins()
$PMA_Config->set('BLOBSTREAMING_SERVER', $serverCfg['host'] . ':' . $BS_PORT); $PMA_Config->set('BLOBSTREAMING_SERVER', $serverCfg['host'] . ':' . $BS_PORT);
$PMA_Config->set('PHP_PBMS_EXISTS', FALSE); $PMA_Config->set('PHP_PBMS_EXISTS', FALSE);
$PMA_Config->set('FILEINFO_EXISTS', FALSE); $PMA_Config->set('FILEINFO_EXISTS', FALSE);
// check if PECL's fileinfo library exist // check if PECL's fileinfo library exist
$finfo = NULL; $finfo = NULL;
@@ -320,8 +320,8 @@ function PMA_BS_IsPBMSReference($bs_reference, $db_name)
// You do not really need a connection to the PBMS Daemon // You do not really need a connection to the PBMS Daemon
// to check if a reference looks valid but unfortunalty the API // to check if a reference looks valid but unfortunalty the API
// requires one at this point so until the API is updated // requires one at this point so until the API is updated
// we need to oepen one here. If you use pool connections this // we need to epen one here. If you use pool connections this
// will not be a performance problem. // will not be a performance problem.
if (PMA_do_connect($db_name, FALSE) == FALSE) { if (PMA_do_connect($db_name, FALSE) == FALSE) {
return FALSE; return FALSE;