Some more missing renamings
This commit is contained in:
parent
8b8d1f88f0
commit
5c9941ab6a
@ -52,7 +52,7 @@ foreach ($post_params as $one_post_param) {
|
||||
if (! isset($export_type) || ! preg_match('/^[a-zA-Z]+$/', $export_type)) {
|
||||
$export_type = 'pdf';
|
||||
}
|
||||
PMA_DBI_selectDb($db);
|
||||
$GLOBALS['dbi']->selectDb($db);
|
||||
|
||||
$path = PMA_securePath(ucfirst($export_type));
|
||||
if (!file_exists('libraries/schema/' . $path . '_Relation_Schema.class.php')) {
|
||||
|
||||
@ -40,15 +40,15 @@ $sql = "SELECT p.plugin_name, p.plugin_type, p.is_active, m.module_name, m.modul
|
||||
FROM data_dictionary.plugins p
|
||||
JOIN data_dictionary.modules m USING (module_name)
|
||||
ORDER BY m.module_name, p.plugin_type, p.plugin_name";
|
||||
$res = PMA_DBI_query($sql);
|
||||
$res = $GLOBALS['dbi']->query($sql);
|
||||
$plugins = array();
|
||||
$modules = array();
|
||||
while ($row = PMA_DBI_fetchAssoc($res)) {
|
||||
while ($row = $GLOBALS['dbi']->fetchAssoc($res)) {
|
||||
$plugins[$row['plugin_type']][] = $row;
|
||||
$modules[$row['module_name']]['info'] = $row;
|
||||
$modules[$row['module_name']]['plugins'][$row['plugin_type']][] = $row;
|
||||
}
|
||||
PMA_DBI_freeResult($res);
|
||||
$GLOBALS['dbi']->freeResult($res);
|
||||
|
||||
// sort plugin list (modules are already sorted)
|
||||
ksort($plugins);
|
||||
|
||||
@ -28,7 +28,7 @@ if (isset($_REQUEST['flush'])) {
|
||||
);
|
||||
|
||||
if (in_array($_REQUEST['flush'], $_flush_commands)) {
|
||||
PMA_DBI_query('FLUSH ' . $_REQUEST['flush'] . ';');
|
||||
$GLOBALS['dbi']->query('FLUSH ' . $_REQUEST['flush'] . ';');
|
||||
}
|
||||
unset($_flush_commands);
|
||||
}
|
||||
|
||||
@ -28,8 +28,8 @@ if (isset($_REQUEST['ajax_request'])
|
||||
$sql_with_limit = 'SELECT * FROM( ' . $sql_query . ' ) AS `temp_res` LIMIT '
|
||||
. $_REQUEST['pos'] . ', ' . $_REQUEST['session_max_rows'];
|
||||
$data = array();
|
||||
$result = PMA_DBI_tryQuery($sql_with_limit);
|
||||
while ($row = PMA_DBI_fetchAssoc($result)) {
|
||||
$result = $GLOBALS['dbi']->tryQuery($sql_with_limit);
|
||||
while ($row = $GLOBALS['dbi']->fetchAssoc($result)) {
|
||||
$data[] = $row;
|
||||
}
|
||||
|
||||
@ -102,9 +102,9 @@ if (strlen($GLOBALS['table'])) {
|
||||
|
||||
$data = array();
|
||||
|
||||
$result = PMA_DBI_tryQuery($sql_query);
|
||||
$fields_meta = PMA_DBI_getFieldsMeta($result);
|
||||
while ($row = PMA_DBI_fetchAssoc($result)) {
|
||||
$result = $GLOBALS['dbi']->tryQuery($sql_query);
|
||||
$fields_meta = $GLOBALS['dbi']->getFieldsMeta($result);
|
||||
while ($row = $GLOBALS['dbi']->fetchAssoc($result)) {
|
||||
$data[] = $row;
|
||||
}
|
||||
|
||||
|
||||
@ -32,7 +32,7 @@ PMA_Util::checkParameters(
|
||||
);
|
||||
|
||||
/* Select database */
|
||||
if (!PMA_DBI_selectDb($db)) {
|
||||
if (!$GLOBALS['dbi']->selectDb($db)) {
|
||||
PMA_Util::mysqlDie(
|
||||
sprintf(__('\'%s\' database does not exist.'), htmlspecialchars($db)),
|
||||
'', ''
|
||||
@ -40,7 +40,7 @@ if (!PMA_DBI_selectDb($db)) {
|
||||
}
|
||||
|
||||
/* Check if table exists */
|
||||
if (!PMA_DBI_getColumns($db, $table)) {
|
||||
if (!$GLOBALS['dbi']->getColumns($db, $table)) {
|
||||
PMA_Util::mysqlDie(__('Invalid table name'));
|
||||
}
|
||||
|
||||
@ -48,7 +48,7 @@ if (!PMA_DBI_getColumns($db, $table)) {
|
||||
$sql = 'SELECT ' . PMA_Util::backquote($transform_key)
|
||||
. ' FROM ' . PMA_Util::backquote($table)
|
||||
. ' WHERE ' . $where_clause . ';';
|
||||
$result = PMA_DBI_fetchValue($sql);
|
||||
$result = $GLOBALS['dbi']->fetchValue($sql);
|
||||
|
||||
/* Check return code */
|
||||
if ($result === false) {
|
||||
|
||||
@ -27,9 +27,9 @@ if (! isset($sql_query) || $sql_query == '') {
|
||||
}
|
||||
|
||||
// Execute the query and return the result
|
||||
$result = PMA_DBI_tryQuery($sql_query);
|
||||
$result = $GLOBALS['dbi']->tryQuery($sql_query);
|
||||
// Get the meta data of results
|
||||
$meta = PMA_DBI_getFieldsMeta($result);
|
||||
$meta = $GLOBALS['dbi']->getFieldsMeta($result);
|
||||
|
||||
// Find the candidate fields for label column and spatial column
|
||||
$labelCandidates = array(); $spatialCandidates = array();
|
||||
@ -58,10 +58,10 @@ if (! isset($visualizationSettings['spatialColumn'])) {
|
||||
|
||||
// Convert geometric columns from bytes to text.
|
||||
$modified_query = PMA_GIS_modifyQuery($sql_query, $visualizationSettings);
|
||||
$modified_result = PMA_DBI_tryQuery($modified_query);
|
||||
$modified_result = $GLOBALS['dbi']->tryQuery($modified_query);
|
||||
|
||||
$data = array();
|
||||
while ($row = PMA_DBI_fetchAssoc($modified_result)) {
|
||||
while ($row = $GLOBALS['dbi']->fetchAssoc($modified_result)) {
|
||||
$data[] = $row;
|
||||
}
|
||||
|
||||
|
||||
@ -61,9 +61,9 @@ if (isset($_REQUEST['get_data_row']) && $_REQUEST['get_data_row'] == true) {
|
||||
$extra_data = array();
|
||||
$row_info_query = 'SELECT * FROM `' . $_REQUEST['db'] . '`.`'
|
||||
. $_REQUEST['table'] . '` WHERE ' . $_REQUEST['where_clause'];
|
||||
$result = PMA_DBI_query($row_info_query . ";", null, PMA_DBI_QUERY_STORE);
|
||||
$fields_meta = PMA_DBI_getFieldsMeta($result);
|
||||
while ($row = PMA_DBI_fetchAssoc($result)) {
|
||||
$result = $GLOBALS['dbi']->query($row_info_query . ";", null, PMA_DBI_QUERY_STORE);
|
||||
$fields_meta = $GLOBALS['dbi']->getFieldsMeta($result);
|
||||
while ($row = $GLOBALS['dbi']->fetchAssoc($result)) {
|
||||
// for bit fields we need to convert them to printable form
|
||||
$i = 0;
|
||||
foreach ($row as $col => $val) {
|
||||
@ -138,9 +138,9 @@ if (isset($zoom_submit)
|
||||
$sql_query .= ' LIMIT ' . $maxPlotLimit;
|
||||
|
||||
//Query execution part
|
||||
$result = PMA_DBI_query($sql_query . ";", null, PMA_DBI_QUERY_STORE);
|
||||
$fields_meta = PMA_DBI_getFieldsMeta($result);
|
||||
while ($row = PMA_DBI_fetchAssoc($result)) {
|
||||
$result = $GLOBALS['dbi']->query($sql_query . ";", null, PMA_DBI_QUERY_STORE);
|
||||
$fields_meta = $GLOBALS['dbi']->getFieldsMeta($result);
|
||||
while ($row = $GLOBALS['dbi']->fetchAssoc($result)) {
|
||||
//Need a row with indexes as 0,1,2 for the getUniqueCondition
|
||||
// hence using a temporary array
|
||||
$tmpRow = array();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user