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:
authorMichal Čihař <michal@cihar.com>2016-04-06 11:17:56 +0300
committerMichal Čihař <michal@cihar.com>2016-04-06 11:17:56 +0300
commitec984877d827c72c614100c5fc4574c61fbd0b28 (patch)
treedb6131e7ae972a176db03197f842a2874f6e04ad /db_structure.php
parentf58349481d0f7ae3793db4e0ebf83774ce1026c5 (diff)
Improve performance of database structure page
There is no need to get full list of tables twice, it's enough to do it in the controller itself. Fixes #12129 Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'db_structure.php')
-rw-r--r--db_structure.php18
1 files changed, 0 insertions, 18 deletions
diff --git a/db_structure.php b/db_structure.php
index 50f3ef80d9..4bdb9ccb2c 100644
--- a/db_structure.php
+++ b/db_structure.php
@@ -15,18 +15,6 @@ use PMA\libraries\Util;
require_once 'libraries/common.inc.php';
require_once 'libraries/db_common.inc.php';
-list(
- $tables,
- $num_tables,
- $total_num_tables,
- $sub_part,
- $is_show_stats,
- $db_is_system_schema,
- $tooltip_truename,
- $tooltip_aliasname,
- $pos
-) = Util::getDbInfo($GLOBALS['db'], isset($sub_part) ? $sub_part : '');
-
$container = libraries\di\Container::getDefaultContainer();
$container->factory('PMA\libraries\controllers\database\DatabaseStructureController');
$container->alias(
@@ -36,16 +24,10 @@ $container->alias(
$container->set('PMA\libraries\Response', Response::getInstance());
$container->alias('response', 'PMA\libraries\Response');
-global $db, $pos, $db_is_system_schema, $total_num_tables, $tables, $num_tables;
/* Define dependencies for the concerned controller */
$dependency_definitions = array(
'db' => $db,
'url_query' => &$GLOBALS['url_query'],
- 'pos' => $pos,
- 'db_is_system_schema' => $db_is_system_schema,
- 'num_tables' => $num_tables,
- 'total_num_tables' => $total_num_tables,
- 'tables' => $tables,
);
/** @var DatabaseStructureController $controller */