diff options
author | Madhura Jayaratne <madhura.cj@gmail.com> | 2013-05-24 16:00:59 +0400 |
---|---|---|
committer | Madhura Jayaratne <madhura.cj@gmail.com> | 2013-05-24 16:00:59 +0400 |
commit | 650a8cdda3fb03d18e069083ba420894a925ea6c (patch) | |
tree | be6d3f7d8e40272a1e3abe11cf66d39b52391ecb /tbl_indexes.php | |
parent | cf1869905e55314199a47332fa71bcf193350158 (diff) |
Convert database interface to a class
Diffstat (limited to 'tbl_indexes.php')
-rw-r--r-- | tbl_indexes.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tbl_indexes.php b/tbl_indexes.php index 552314453b..94d337d819 100644 --- a/tbl_indexes.php +++ b/tbl_indexes.php @@ -15,7 +15,7 @@ require_once 'libraries/tbl_common.inc.php'; // Get fields and stores their name/type $fields = array(); -foreach (PMA_DBI_getColumnsFull($db, $table) as $row) { +foreach ($GLOBALS['dbi']->getColumnsFull($db, $table) as $row) { if (preg_match('@^(set|enum)\((.+)\)$@i', $row['Type'], $tmp)) { $tmp[2] = substr( preg_replace('@([^,])\'\'@', '\\1\\\'', ',' . $tmp[2]), 1 @@ -107,7 +107,7 @@ if (isset($_REQUEST['do_save_data'])) { $sql_query .= ';'; if (! $error) { - PMA_DBI_query($sql_query); + $GLOBALS['dbi']->query($sql_query); $message = PMA_Message::success( __('Table %1$s has been altered successfully') ); |