Do not get parameters on loading, but rather on usage.

This commit is contained in:
Michal Čihař
2009-08-25 07:06:45 +00:00
parent c26c9c1fb5
commit 1b7698912f

View File

@@ -11,7 +11,6 @@
* Gets relation settings
*/
require_once './libraries/relation.lib.php';
$cfgRelation = PMA_getRelationsParam();
/**
* This class tracks changes on databases, tables and views.
@@ -103,7 +102,7 @@ class PMA_Tracker
*/
static public function isActive()
{
global $cfgRelation;
$cfgRelation = PMA_getRelationsParam();
if (!$cfgRelation['trackingwork']) return false;
self::init();
@@ -190,6 +189,7 @@ class PMA_Tracker
*/
static public function isTracked($dbname, $tablename)
{
$cfgRelation = PMA_getRelationsParam();
if (!$cfgRelation['trackingwork']) return false;
$sql_query =