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>2018-03-26 01:32:13 +0300
committerMaurício Meneghini Fauth <mauriciofauth@gmail.com>2018-03-26 01:32:13 +0300
commitd98658187a5ee9be33bb5fa54e7fe0638ef9b70c (patch)
treeaf1d9221780ee28b04529c6eb813754a712bc889 /chk_rel.php
parent46ceeea14f258f6bc5fbef9260e81a71ba3ba228 (diff)
Replace PhpMyAdmin\Relation static calls
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
Diffstat (limited to 'chk_rel.php')
-rw-r--r--chk_rel.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/chk_rel.php b/chk_rel.php
index 183ee4f338..f34e8300d5 100644
--- a/chk_rel.php
+++ b/chk_rel.php
@@ -10,25 +10,27 @@ use PhpMyAdmin\Response;
require_once 'libraries/common.inc.php';
+$relation = new Relation();
+
// If request for creating the pmadb
if (isset($_REQUEST['create_pmadb'])) {
- if (Relation::createPmaDatabase()) {
- Relation::fixPmaTables('phpmyadmin');
+ if ($relation->createPmaDatabase()) {
+ $relation->fixPmaTables('phpmyadmin');
}
}
// If request for creating all PMA tables.
if (isset($_REQUEST['fixall_pmadb'])) {
- Relation::fixPmaTables($GLOBALS['db']);
+ $relation->fixPmaTables($GLOBALS['db']);
}
-$cfgRelation = Relation::getRelationsParam();
+$cfgRelation = $relation->getRelationsParam();
// If request for creating missing PMA tables.
if (isset($_REQUEST['fix_pmadb'])) {
- Relation::fixPmaTables($cfgRelation['db']);
+ $relation->fixPmaTables($cfgRelation['db']);
}
$response = Response::getInstance();
$response->addHTML(
- Relation::getRelationsParamDiagnostic($cfgRelation)
+ $relation->getRelationsParamDiagnostic($cfgRelation)
);