diff options
author | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2018-03-26 01:32:13 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2018-03-26 01:32:13 +0300 |
commit | d98658187a5ee9be33bb5fa54e7fe0638ef9b70c (patch) | |
tree | af1d9221780ee28b04529c6eb813754a712bc889 /tbl_replace.php | |
parent | 46ceeea14f258f6bc5fbef9260e81a71ba3ba228 (diff) |
Replace PhpMyAdmin\Relation static calls
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
Diffstat (limited to 'tbl_replace.php')
-rw-r--r-- | tbl_replace.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tbl_replace.php b/tbl_replace.php index 6df978fac3..4c40369043 100644 --- a/tbl_replace.php +++ b/tbl_replace.php @@ -47,6 +47,8 @@ $scripts->addFile('sql.js'); $scripts->addFile('indexes.js'); $scripts->addFile('gis_data_editor.js'); +$relation = new Relation(); + $insertEdit = new InsertEdit($GLOBALS['dbi']); // check whether insert row mode, if so include tbl_change.php @@ -384,7 +386,7 @@ if ($response->isAjax() && ! isset($_POST['ajax_page_request'])) { */ if (isset($_REQUEST['rel_fields_list']) && $_REQUEST['rel_fields_list'] != '') { - $map = Relation::getForeigners($db, $table, '', 'both'); + $map = $relation->getForeigners($db, $table, '', 'both'); $relation_fields = array(); parse_str($_REQUEST['rel_fields_list'], $relation_fields); |