Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurício Meneghini Fauth <mauriciofauth@gmail.com>2017-11-04 23:51:54 +0300
committerMaurício Meneghini Fauth <mauriciofauth@gmail.com>2017-11-04 23:55:20 +0300
commit1fdc2aafc43ad26c2869a36e5c6e0d7eb9dd4e9d (patch)
treeafa9c06c1cfc6117c616f6f43cff30c8c6c96307 /browse_foreigners.php
parent9c264d8bfb5abf041e91da9c61d54e519d6147a6 (diff)
Replace globals with DI in PhpMyAdmin\BrowseForeigners
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
Diffstat (limited to 'browse_foreigners.php')
-rw-r--r--browse_foreigners.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/browse_foreigners.php b/browse_foreigners.php
index 2a4dd24566..6b31352799 100644
--- a/browse_foreigners.php
+++ b/browse_foreigners.php
@@ -41,6 +41,7 @@ $header->setBodyId('body_browse_foreigners');
$foreigners = Relation::getForeigners($db, $table);
$foreign_limit = BrowseForeigners::getForeignLimit(
+ $GLOBALS['cfg']['MaxRows'],
isset($_REQUEST['foreign_showAll']) ? $_REQUEST['foreign_showAll'] : null
);
@@ -55,7 +56,15 @@ $foreignData = Relation::getForeignData(
// HTML output
$html = BrowseForeigners::getHtmlForRelationalFieldSelection(
- $db, $table, $_REQUEST['field'], $foreignData,
+ $GLOBALS['cfg']['RepeatCells'],
+ $GLOBALS['pmaThemeImage'],
+ $GLOBALS['cfg']['MaxRows'],
+ $GLOBALS['cfg']['ShowAll'],
+ $GLOBALS['cfg']['LimitChars'],
+ $db,
+ $table,
+ $_REQUEST['field'],
+ $foreignData,
isset($fieldkey) ? $fieldkey : null,
isset($data) ? $data : null
);