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-09-12 02:11:26 +0300
committerMaurício Meneghini Fauth <mauriciofauth@gmail.com>2017-09-12 04:09:05 +0300
commit11ff8cee1191fae7f283e2ef438c90a5d4b47e5b (patch)
treeae96ed53e610f0ddff5c108885547c6738dc87f4 /browse_foreigners.php
parenta2b08bae7b9979dee6a9f195e55481bf1d7e882d (diff)
Refactor browse_foreigners functions to static methods
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
Diffstat (limited to 'browse_foreigners.php')
-rw-r--r--browse_foreigners.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/browse_foreigners.php b/browse_foreigners.php
index b7c194f2e7..2a4dd24566 100644
--- a/browse_foreigners.php
+++ b/browse_foreigners.php
@@ -5,12 +5,13 @@
*
* @package PhpMyAdmin
*/
+
+use PhpMyAdmin\BrowseForeigners;
use PhpMyAdmin\Relation;
use PhpMyAdmin\Response;
use PhpMyAdmin\Util;
require_once 'libraries/common.inc.php';
-require_once 'libraries/browse_foreigners.lib.php';
/**
* Sets globals from $_REQUEST
@@ -39,7 +40,7 @@ $header->setBodyId('body_browse_foreigners');
*/
$foreigners = Relation::getForeigners($db, $table);
-$foreign_limit = PMA_getForeignLimit(
+$foreign_limit = BrowseForeigners::getForeignLimit(
isset($_REQUEST['foreign_showAll']) ? $_REQUEST['foreign_showAll'] : null
);
@@ -53,7 +54,7 @@ $foreignData = Relation::getForeignData(
);
// HTML output
-$html = PMA_getHtmlForRelationalFieldSelection(
+$html = BrowseForeigners::getHtmlForRelationalFieldSelection(
$db, $table, $_REQUEST['field'], $foreignData,
isset($fieldkey) ? $fieldkey : null,
isset($data) ? $data : null