aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_admin.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2005-10-09 17:59:27 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2005-10-09 17:59:27 +0000
commit0513ef4d17e32c8be1fec6615918e6d694667738 (patch)
treef7aad03713f11023643d7c6fb7192b5b96a1ffe2 /phpBB/includes/functions_admin.php
parent9732b0deb29ed149c4e9b602fc7d16ac721389a6 (diff)
downloadforums-0513ef4d17e32c8be1fec6615918e6d694667738.tar
forums-0513ef4d17e32c8be1fec6615918e6d694667738.tar.gz
forums-0513ef4d17e32c8be1fec6615918e6d694667738.tar.bz2
forums-0513ef4d17e32c8be1fec6615918e6d694667738.tar.xz
forums-0513ef4d17e32c8be1fec6615918e6d694667738.zip
- added new query type to dbal's sql_build_array
- allow setting custom template path - adjusted module class to correctly parse trees with more than one category - added caching to module class git-svn-id: file:///svn/phpbb/trunk@5268 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r--phpBB/includes/functions_admin.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php
index 9668b9f44a..7fb8148726 100644
--- a/phpBB/includes/functions_admin.php
+++ b/phpBB/includes/functions_admin.php
@@ -892,7 +892,7 @@ function sync($mode, $where_type = '', $where_ids = '', $resync_parents = FALSE,
$db->sql_query($sql);
unset($topic_id_ary);
}
- $db->sql_freeresult($result);
+ $db->sql_freeresult($result);
}
break;
@@ -1764,6 +1764,7 @@ function cache_moderators()
case 'mysql4':
case 'mysqli':
case 'mssql':
+ case 'mssql_odbc':
case 'sqlite':
$sql = 'INSERT INTO ' . MODERATOR_TABLE . ' (forum_id, user_id, username, group_id, groupname)
' . implode(' UNION ALL ', preg_replace('#^(.*)$#', 'SELECT \1', $m_sql));
@@ -2081,6 +2082,7 @@ if (class_exists('auth'))
case 'mysql4':
case 'mysqli':
case 'mssql':
+ case 'mssql_odbc':
case 'sqlite':
$sql = implode(' UNION ALL ', preg_replace('#^(.*?)$#', 'SELECT \1', $sql_subary));
break;
@@ -2224,6 +2226,7 @@ if (class_exists('auth'))
case 'mysql4':
case 'mysqli':
case 'mssql':
+ case 'mssql_odbc':
case 'sqlite':
$sql .= (($sql != '') ? ' UNION ALL ' : '') . " SELECT '$option', " . $type_sql[$type];
break;