summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/db.inc.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-12-19 11:43:20 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-12-19 11:43:20 +0000
commita8abf2aa3049bf6234ecc33fe42b82c8020c9b90 (patch)
treedefc9db7ace9ff854226bff56be4e43821998861 /frontends/php/include/db.inc.php
parentdafdb98ff917038600eae233c6a447aa82b66953 (diff)
downloadzabbix-a8abf2aa3049bf6234ecc33fe42b82c8020c9b90.tar.gz
zabbix-a8abf2aa3049bf6234ecc33fe42b82c8020c9b90.tar.xz
zabbix-a8abf2aa3049bf6234ecc33fe42b82c8020c9b90.zip
- improved sqlite3 database support [TEST VERSION] (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@3607 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/db.inc.php')
-rw-r--r--frontends/php/include/db.inc.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/frontends/php/include/db.inc.php b/frontends/php/include/db.inc.php
index 5ff02cf5..8f5953c4 100644
--- a/frontends/php/include/db.inc.php
+++ b/frontends/php/include/db.inc.php
@@ -72,13 +72,13 @@
{
function init_db_access()
{
- global $ZBX_CONFIGURATION_FILE, $ZBX_SEM_ID;
+ global $DB_DATABASE, $ZBX_SEM_ID;
$ZBX_SEM_ID = false;
if(function_exists('ftok') && function_exists('sem_get') &&
- file_exists($ZBX_CONFIGURATION_FILE))
+ file_exists($DB_DATABASE))
{
- $ZBX_SEM_ID = sem_get(ftok($ZBX_CONFIGURATION_FILE, 'z'), 1);
+ $ZBX_SEM_ID = sem_get(ftok($DB_DATABASE, 'z'), 1);
}
}
}