Rename table Twig extension
Signed-off-by: Leonardo Strozzi <laps15@inf.ufpr.br>
This commit is contained in:
parent
eddbbebdfc
commit
e7d36c2ff6
@ -28,7 +28,7 @@ class TableExtension extends AbstractExtension
|
||||
{
|
||||
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 %}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user