diff --git a/libraries/classes/Controllers/Table/RelationController.php b/libraries/classes/Controllers/Table/RelationController.php index 491fa1a486..93ff323a25 100644 --- a/libraries/classes/Controllers/Table/RelationController.php +++ b/libraries/classes/Controllers/Table/RelationController.php @@ -194,7 +194,7 @@ final class RelationController extends AbstractController 'dbi' => $this->dbi, 'default_sliders_state' => $GLOBALS['cfg']['InitialSlidersState'], 'foreignKeySupported' => $foreignKeySupported, - 'displayIndexesHtml' => $foreignKeySupported ? Index::getHtmlForDisplayIndexes() : null, + 'indexes_html' => $foreignKeySupported ? Index::getHtmlForIndexes($this->table, $this->db) : null, 'route' => $route, ]) ); diff --git a/libraries/classes/Controllers/Table/StructureController.php b/libraries/classes/Controllers/Table/StructureController.php index e273e89454..2d2911e81f 100644 --- a/libraries/classes/Controllers/Table/StructureController.php +++ b/libraries/classes/Controllers/Table/StructureController.php @@ -1331,7 +1331,7 @@ class StructureController extends AbstractController ], 'collations' => $collations, 'is_foreign_key_supported' => Util::isForeignKeySupported($engine), - 'displayIndexesHtml' => Index::getHtmlForDisplayIndexes(), + 'indexes_html' => Index::getHtmlForIndexes($this->table, $this->db), 'cfg_relation' => $this->relation->getRelationsParam(), 'hide_structure_actions' => $hideStructureActions, 'db' => $this->db, diff --git a/libraries/classes/Index.php b/libraries/classes/Index.php index 4831a5e403..e151d22e98 100644 --- a/libraries/classes/Index.php +++ b/libraries/classes/Index.php @@ -561,40 +561,6 @@ class Index return $this->_columns; } - /** - * Get HTML for display indexes - * - * @return string - */ - public static function getHtmlForDisplayIndexes() - { - $html_output = '