Skip to content
Permalink
Browse files

Rename table Twig extension

Signed-off-by: Leonardo Strozzi <laps15@inf.ufpr.br>
  • Loading branch information...
laps15 committed Aug 1, 2018
1 parent eddbbeb commit e7d36c2ff6429482db697bfb8479b013fc856418
Showing with 3 additions and 3 deletions.
  1. +1 −1 libraries/classes/Twig/TableExtension.php
  2. +2 −2 templates/table/relation/common_form.twig
@@ -28,7 +28,7 @@ public function getFunctions()
{
return [
new TwigFunction(
'Table_get',
'table_get',
'PhpMyAdmin\Table::get'
),
];
@@ -51,7 +51,7 @@
{% endif %}
{% set unique_columns = [] %}
{% if foreign_db and foreign_table %}
{% set table_obj = Table_get(foreign_table, foreign_db) %}
{% set table_obj = table_get(foreign_table, foreign_db) %}
{% set unique_columns = table_obj.getUniqueColumns(false, false) %}
{% endif %}
{% include 'table/relation/foreign_key_row.twig' with {
@@ -147,7 +147,7 @@
{% if existrel[myfield] is defined %}
{% set foreign_column = existrel[myfield]['foreign_field'] %}
{% endif %}
{% set table_obj = Table_get(foreign_table, foreign_db) %}
{% set table_obj = table_get(foreign_table, foreign_db) %}
{% set unique_columns = table_obj.getUniqueColumns(false, false) %}
{% endif %}

0 comments on commit e7d36c2

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