aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/objects.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-14 16:26:26 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-14 16:26:26 +0000
commit1bb2b3f8572c087b20ef5649fa1463a35374521f (patch)
tree3511b287d06a278c37fe9551f1fed82ea07893fb /engine/lib/objects.php
parentd2a63172f0d09475319ea2935575044beea4da4d (diff)
downloadelgg-1bb2b3f8572c087b20ef5649fa1463a35374521f.tar.gz
elgg-1bb2b3f8572c087b20ef5649fa1463a35374521f.tar.bz2
Adding a couple of extra functions, deleting the old users module
git-svn-id: https://code.elgg.org/elgg/trunk@224 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/objects.php')
-rw-r--r--engine/lib/objects.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/engine/lib/objects.php b/engine/lib/objects.php
index 900ea3f81..269cd607c 100644
--- a/engine/lib/objects.php
+++ b/engine/lib/objects.php
@@ -191,18 +191,16 @@
* Call create_entity first.
*
* @param int $guid
- * @param string $name
+ * @param string $title
* @param string $description
- * @param string $url
*/
- function create_object_entity($guid, $name, $description, $url)
+ function create_object_entity($guid, $title, $description)
{
global $CONFIG;
$guid = (int)$guid;
- $name = sanitise_string($name);
+ $title = sanitise_string($title);
$description = sanitise_string($description);
- $url = sanitise_string($url);
$row = get_entity_as_row($guid);
@@ -214,7 +212,7 @@
delete_object_entity($guid);
// Insert it
- $result = insert_data("INSERT into {$CONFIG->dbprefix}objects_entity (guid, name, description, url) values ($guid, '$name','$description','$url')");
+ $result = insert_data("INSERT into {$CONFIG->dbprefix}objects_entity (guid, title, description) values ($guid, '$title','$description')");
if ($result!==false)
return true;
}