diff options
author | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2019-05-14 19:03:23 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2019-05-14 19:03:23 +0300 |
commit | 94a18417eed5e0c7a29f79eedb2ec3f5d065eacf (patch) | |
tree | 1d6f82fc399e4e20afcbdc63cd68e58690c0b390 /sql.php | |
parent | 720e302de5c1ad5db1fb1cbcad3eaaec948ca465 (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.php | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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' ); } |