accesslib:build_context_path() refer to dbfamily instead of dbtype

so mysql's various drivers can be used.
This commit is contained in:
martinlanghoff
2007-09-20 02:45:57 +00:00
parent 163a5eee2c
commit 55a814399f
+1 -1
View File
@@ -4456,7 +4456,7 @@ function build_context_path($force=false) {
depth = ct.depth
FROM {$CFG->prefix}$temptable ct
WHERE ct.id={$CFG->prefix}context.id";
if ($CFG->dbtype==='mysql') {
if ($CFG->dbfamily==='mysql') {
$updatesql = "UPDATE {$CFG->prefix}context, {$CFG->prefix}$temptable
SET {$CFG->prefix}context.path = {$CFG->prefix}$temptable.path,
{$CFG->prefix}context.depth = {$CFG->prefix}$temptable.depth