Rename table Twig extension

Signed-off-by: Leonardo Strozzi <laps15@inf.ufpr.br>
This commit is contained in:
Leonardo Strozzi 2018-08-01 19:11:36 -03:00
parent eddbbebdfc
commit e7d36c2ff6
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ class TableExtension extends AbstractExtension
{
return [
new TwigFunction(
'Table_get',
'table_get',
'PhpMyAdmin\Table::get'
),
];

View File

@ -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 %}