diff options
author | Marc Delisle <marc@infomarc.info> | 2015-08-25 18:16:59 +0300 |
---|---|---|
committer | Marc Delisle <marc@infomarc.info> | 2015-08-25 18:16:59 +0300 |
commit | bb01f9b2b7eaf25f609896565aedc6f04795301b (patch) | |
tree | 520da3caf993230c40dff128fe1199da995c9476 /server_privileges.php | |
parent | 6ff67388d2191200ba5c6549b3a689e235baccde (diff) |
Refactor db_info.inc.php
Signed-off-by: Marc Delisle <marc@infomarc.info>
Diffstat (limited to 'server_privileges.php')
-rw-r--r-- | server_privileges.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/server_privileges.php b/server_privileges.php index 277baf65df..a08f159914 100644 --- a/server_privileges.php +++ b/server_privileges.php @@ -308,7 +308,19 @@ if (isset($_REQUEST['viewing_mode']) && $_REQUEST['viewing_mode'] == 'db') { // Gets the database structure $sub_part = '_structure'; ob_start(); - include 'libraries/db_info.inc.php'; + + list( + $tables, + $num_tables, + $total_num_tables, + $sub_part, + $is_show_stats, + $db_is_system_schema, + $tooltip_truename, + $tooltip_aliasname, + $pos + ) = PMA_Util::getDbInfo($db, isset($sub_part) ? $sub_part : ''); + $content = ob_get_contents(); ob_end_clean(); $response->addHTML($content . "\n"); |