Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Delisle <marc@infomarc.info>2015-08-25 18:16:59 +0300
committerMarc Delisle <marc@infomarc.info>2015-08-25 18:16:59 +0300
commitbb01f9b2b7eaf25f609896565aedc6f04795301b (patch)
tree520da3caf993230c40dff128fe1199da995c9476 /server_privileges.php
parent6ff67388d2191200ba5c6549b3a689e235baccde (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.php14
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");