diff options
author | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2017-08-23 02:47:28 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauriciofauth@gmail.com> | 2017-08-23 02:51:27 +0300 |
commit | e2c83b954b9aa58d3ada9ff0c857af0115618cdf (patch) | |
tree | 08c59269958f74021c6ed7d94dccece04d61c6c3 /chk_rel.php | |
parent | 8256945ec2f79155f8dae765118efe1201d1436c (diff) |
Refactor relation functions to static methods
Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
Diffstat (limited to 'chk_rel.php')
-rw-r--r-- | chk_rel.php | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/chk_rel.php b/chk_rel.php index 3ba2323429..183ee4f338 100644 --- a/chk_rel.php +++ b/chk_rel.php @@ -5,29 +5,30 @@ * * @package PhpMyAdmin */ +use PhpMyAdmin\Relation; use PhpMyAdmin\Response; require_once 'libraries/common.inc.php'; // If request for creating the pmadb if (isset($_REQUEST['create_pmadb'])) { - if (PMA_createPMADatabase()) { - PMA_fixPMATables('phpmyadmin'); + if (Relation::createPmaDatabase()) { + Relation::fixPmaTables('phpmyadmin'); } } // If request for creating all PMA tables. if (isset($_REQUEST['fixall_pmadb'])) { - PMA_fixPMATables($GLOBALS['db']); + Relation::fixPmaTables($GLOBALS['db']); } -$cfgRelation = PMA_getRelationsParam(); +$cfgRelation = Relation::getRelationsParam(); // If request for creating missing PMA tables. if (isset($_REQUEST['fix_pmadb'])) { - PMA_fixPMATables($cfgRelation['db']); + Relation::fixPmaTables($cfgRelation['db']); } $response = Response::getInstance(); $response->addHTML( - PMA_getRelationsParamDiagnostic($cfgRelation) + Relation::getRelationsParamDiagnostic($cfgRelation) ); |