Skip to content
Permalink
Browse files

Remove index Twig extensions

Signed-off-by: Leonardo Strozzi <laps15@inf.ufpr.br>
  • Loading branch information...
laps15 committed Aug 1, 2018
1 parent 04890c3 commit aee045f960131cf9a5d97c50c48814ecd6b03d48
@@ -1353,12 +1353,14 @@ function ($key, $val) {
}
$engine = $this->table_obj->getStorageEngine();
$foreignKeySupported = Util::isForeignKeySupported($engine);
return $this->template->render('table/structure/display_structure', [
'url_params' => [
'db' => $this->db,
'table' => $this->table,
],
'is_foreign_key_supported' => Util::isForeignKeySupported($engine),
'displayIndexesHtml' => $foreignKeySupported ? Index::getHtmlForDisplayIndexes() : null,
'cfg_relation' => $this->relation->getRelationsParam(),
'hide_structure_actions' => $hideStructureActions,
'db' => $this->db,
@@ -12,7 +12,6 @@
use PhpMyAdmin\Twig\CharsetsExtension;
use PhpMyAdmin\Twig\CoreExtension;
use PhpMyAdmin\Twig\I18nExtension;
use PhpMyAdmin\Twig\IndexExtension;
use PhpMyAdmin\Twig\MessageExtension;
use PhpMyAdmin\Twig\PartitionExtension;
use PhpMyAdmin\Twig\PluginsExtension;
@@ -70,7 +69,6 @@ public function __construct()
$twig->addExtension(new CharsetsExtension());
$twig->addExtension(new CoreExtension());
$twig->addExtension(new I18nExtension());
$twig->addExtension(new IndexExtension());
$twig->addExtension(new MessageExtension());
$twig->addExtension(new PartitionExtension());
$twig->addExtension(new PluginsExtension());

This file was deleted.

Oops, something went wrong.
@@ -437,7 +437,7 @@
{# Displays indexes #}
{% if not tbl_is_view and not db_is_system_schema
and 'ARCHIVE' != tbl_storage_engine %}
{{ Index_getHtmlForDisplayIndexes() }}
{{ displayIndexesHtml|raw }}
{% endif %}

{# Display partition details #}

0 comments on commit aee045f

Please sign in to comment.
You can’t perform that action at this time.