diff --git a/libraries/controllers/table/TableChartController.php b/libraries/controllers/table/TableChartController.php index 1aa3c602f4..fc5b314a68 100644 --- a/libraries/controllers/table/TableChartController.php +++ b/libraries/controllers/table/TableChartController.php @@ -116,25 +116,6 @@ class TableChartController extends TableController $url_params['back'] = 'tbl_sql.php'; include 'libraries/tbl_common.inc.php'; $GLOBALS['dbi']->selectDb($GLOBALS['db']); - $table_class_object = $GLOBALS['dbi']->getTable( - $GLOBALS['db'], - $GLOBALS['table'] - ); - $GLOBALS['showtable'] = $table_class_object->getStatusInfo(null, true); - if ($table_class_object->isView()) { - $tbl_is_view = true; - $tbl_storage_engine = __('View'); - $show_comment = null; - } else { - $tbl_is_view = false; - $tbl_storage_engine = $table_class_object->getStorageEngine(); - $show_comment = $table_class_object->getComment(); - } - $tbl_collation = $table_class_object->getCollation(); - $table_info_num_rows = $table_class_object->getNumRows(); - $row_format = $table_class_object->getRowFormat(); - $auto_increment = $table_class_object->getAutoIncrement(); - $create_options = $table_class_object->getCreateOptions(); } elseif (strlen($this->db) > 0) { $url_params['goto'] = Util::getScriptNameForOption( $this->cfg['DefaultTabDatabase'], 'database' diff --git a/libraries/controllers/table/TableIndexesController.php b/libraries/controllers/table/TableIndexesController.php index c7dfe1d1f5..0664c45b85 100644 --- a/libraries/controllers/table/TableIndexesController.php +++ b/libraries/controllers/table/TableIndexesController.php @@ -64,25 +64,6 @@ class TableIndexesController extends TableController public function displayFormAction() { $GLOBALS['dbi']->selectDb($GLOBALS['db']); - $table_class_object = $GLOBALS['dbi']->getTable( - $GLOBALS['db'], - $GLOBALS['table'] - ); - $GLOBALS['showtable'] = $table_class_object->getStatusInfo(null, true); - if ($table_class_object->isView()) { - $tbl_is_view = true; - $tbl_storage_engine = __('View'); - $show_comment = null; - } else { - $tbl_is_view = false; - $tbl_storage_engine = $table_class_object->getStorageEngine(); - $show_comment = $table_class_object->getComment(); - } - $tbl_collation = $table_class_object->getCollation(); - $table_info_num_rows = $table_class_object->getNumRows(); - $row_format = $table_class_object->getRowFormat(); - $auto_increment = $table_class_object->getAutoIncrement(); - $create_options = $table_class_object->getCreateOptions(); $add_fields = 0; if (isset($_REQUEST['index']) && is_array($_REQUEST['index'])) { // coming already from form