diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-05-28 15:50:54 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-05-28 15:50:54 +0000 |
commit | 1d0aeca9e34474e717dc590b0e67daa8c5e8d60a (patch) | |
tree | 13fc0e91bcb53ed320f049eb829657da6f360506 /engine | |
parent | f92789386fd7b81c1c1b0ae2502de2e74c17ad03 (diff) | |
download | elgg-1d0aeca9e34474e717dc590b0e67daa8c5e8d60a.tar.gz elgg-1d0aeca9e34474e717dc590b0e67daa8c5e8d60a.tar.bz2 |
Adding support for db prefixes to previous
git-svn-id: https://code.elgg.org/elgg/trunk@747 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/tags.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/lib/tags.php b/engine/lib/tags.php index 388b88d5e..5ec06105c 100644 --- a/engine/lib/tags.php +++ b/engine/lib/tags.php @@ -102,9 +102,9 @@ $access = get_access_list();
$query = "SELECT {$CONFIG->dbprefix}msvalue.string as tag, count(msvalue.id) as total ";
- $query .= "FROM entities e join metadata md on md.entity_guid = e.guid ";
- $query .= " join entity_subtypes subtype on subtype.id = e.subtype ";
- $query .= " join metastrings msvalue on msvalue.id = md.value_id ";
+ $query .= "FROM {$CONFIG->dbprefix}entities e join {$CONFIG->dbprefix}metadata md on md.entity_guid = e.guid ";
+ $query .= " join {$CONFIG->dbprefix}entity_subtypes subtype on subtype.id = e.subtype ";
+ $query .= " join {$CONFIG->dbprefix}metastrings msvalue on msvalue.id = md.value_id ";
$query .= " where 1 ";
|