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 /server_binlog.php | |
parent | cf1869905e55314199a47332fa71bcf193350158 (diff) |
Convert database interface to a class
Diffstat (limited to 'server_binlog.php')
-rw-r--r-- | server_binlog.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server_binlog.php b/server_binlog.php index bc86a7e2dd..8fdb76fc96 100644 --- a/server_binlog.php +++ b/server_binlog.php @@ -48,14 +48,14 @@ if ($GLOBALS['cfg']['MaxRows'] !== 'all') { /** * Sends the query */ -$result = PMA_DBI_query($sql_query); +$result = $GLOBALS['dbi']->query($sql_query); /** * prepare some vars for displaying the result table */ // Gets the list of fields properties if (isset($result) && $result) { - $num_rows = PMA_DBI_numRows($result); + $num_rows = $GLOBALS['dbi']->numRows($result); } else { $num_rows = 0; } @@ -194,7 +194,7 @@ $html .= '</td>' . '<tbody>'; $odd_row = true; -while ($value = PMA_DBI_fetchAssoc($result)) { +while ($value = $GLOBALS['dbi']->fetchAssoc($result)) { if (! $dontlimitchars && PMA_strlen($value['Info']) > $GLOBALS['cfg']['LimitChars'] ) { |