no need to fetch $cfgRelation

checking relation support is done in relation function
This commit is contained in:
Sebastian Mendel
2008-05-09 11:09:48 +00:00
parent 7e27e8a3f3
commit 97cd0fdc5c

View File

@@ -96,11 +96,6 @@ require_once './libraries/tbl_info.inc.php';
$comments_map = array(); $comments_map = array();
if ($GLOBALS['cfg']['ShowPropertyComments']) { if ($GLOBALS['cfg']['ShowPropertyComments']) {
require_once './libraries/relation.lib.php';
require_once './libraries/transformations.lib.php';
$cfgRelation = PMA_getRelationsParam();
$comments_map = PMA_getComments($db, $table); $comments_map = PMA_getComments($db, $table);
} }
@@ -193,8 +188,7 @@ if (isset($primary_key)) {
// <markus@noga.de> // <markus@noga.de>
// retrieve keys into foreign fields, if any // retrieve keys into foreign fields, if any
$cfgRelation = PMA_getRelationsParam(); $foreigners = PMA_getForeigners($db, $table);
$foreigners = ($cfgRelation['relwork'] ? PMA_getForeigners($db, $table) : FALSE);
/** /**