diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-11-20 11:39:18 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-11-20 11:39:18 +0000 |
commit | ad94f30fa23b83667c4ade72afaea948807e6b1b (patch) | |
tree | a5021c2e54ece25019fb68d5153267fb4de9b293 | |
parent | 36b6cd71d265f151b72fc986a43d9041b638f5a8 (diff) | |
download | elgg-ad94f30fa23b83667c4ade72afaea948807e6b1b.tar.gz elgg-ad94f30fa23b83667c4ade72afaea948807e6b1b.tar.bz2 |
Refs #569, #570, #571: dbprefix not prefix;
git-svn-id: https://code.elgg.org/elgg/trunk@2471 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | engine/lib/entities.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engine/lib/entities.php b/engine/lib/entities.php index 85c68c1b6..b1613c1d1 100644 --- a/engine/lib/entities.php +++ b/engine/lib/entities.php @@ -2165,7 +2165,7 @@ global $CONFIG;
$entity_guid = (int) $entity_guid;
$name = mysql_real_escape_string($name);
- if ($setting = get_data_row("select value from {$CONFIG->prefix}private_settings where name = '{$name}' and entity_guid = {$entity_guid}")) {
+ if ($setting = get_data_row("select value from {$CONFIG->dbprefix}private_settings where name = '{$name}' and entity_guid = {$entity_guid}")) {
return $setting->value;
}
return false;
@@ -2182,7 +2182,7 @@ $entity_guid = (int) $entity_guid; - $result = get_data("select * from {$CONFIG->prefix}private_settings where entity_guid = {$entity_guid}"); + $result = get_data("select * from {$CONFIG->dbprefix}private_settings where entity_guid = {$entity_guid}"); if ($result) { $return = array(); @@ -2210,7 +2210,7 @@ $entity_guid = (int) $entity_guid;
$name = mysql_real_escape_string($name);
$value = mysql_real_escape_string($value);
- return insert_data("insert into {$CONFIG->prefix}private_settings set name = '{$name}', value = '{$value}' where entity_guid = {$entity_guid}");
+ return insert_data("insert into {$CONFIG->dbprefix}private_settings set name = '{$name}', value = '{$value}' where entity_guid = {$entity_guid}");
}
@@ -2227,7 +2227,7 @@ global $CONFIG;
$entity_guid = (int) $entity_guid;
$name = mysql_real_escape_string($name);
- return delete_data("delete from {$CONFIG->prefix}private_settings where name = '{$name}' and entity_guid = {$entity_guid}");
+ return delete_data("delete from {$CONFIG->dbprefix}private_settings where name = '{$name}' and entity_guid = {$entity_guid}");
} @@ -2242,7 +2242,7 @@ global $CONFIG; $entity_guid = (int) $entity_guid; - return delete_data("delete from {$CONFIG->prefix}private_settings where entity_guid = {$entity_guid}"); + return delete_data("delete from {$CONFIG->dbprefix}private_settings where entity_guid = {$entity_guid}"); } /** |