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 <mauricio@fauth.dev>2019-05-14 19:03:23 +0300
committerMaurício Meneghini Fauth <mauricio@fauth.dev>2019-05-14 19:03:23 +0300
commit94a18417eed5e0c7a29f79eedb2ec3f5d065eacf (patch)
tree1d6f82fc399e4e20afcbdc63cd68e58690c0b390 /sql.php
parent720e302de5c1ad5db1fb1cbcad3eaaec948ca465 (diff)
Declare $cfg global variable explicitly
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to 'sql.php')
-rw-r--r--sql.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/sql.php b/sql.php
index f08e2f45a7..68e495cf8b 100644
--- a/sql.php
+++ b/sql.php
@@ -23,9 +23,8 @@ if (! defined('ROOT_PATH')) {
define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
}
-/**
- * Gets some core libraries
- */
+global $cfg;
+
require_once ROOT_PATH . 'libraries/common.inc.php';
$container = Container::getDefaultContainer();
@@ -66,12 +65,12 @@ $is_gotofile = true;
if (empty($goto)) {
if (empty($table)) {
$goto = Util::getScriptNameForOption(
- $GLOBALS['cfg']['DefaultTabDatabase'],
+ $cfg['DefaultTabDatabase'],
'database'
);
} else {
$goto = Util::getScriptNameForOption(
- $GLOBALS['cfg']['DefaultTabTable'],
+ $cfg['DefaultTabTable'],
'table'
);
}