aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/sites.php
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-04 12:19:00 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-04 12:19:00 +0000
commitff13bda327cfba19188755f50a3eff6bb0c0084b (patch)
tree0b5265f64f026a422c8eb9ad1a7f801b4278f1a8 /engine/lib/sites.php
parenta98c0f8f77420a2d9535b2df64a6b5ae5c82208a (diff)
downloadelgg-ff13bda327cfba19188755f50a3eff6bb0c0084b.tar.gz
elgg-ff13bda327cfba19188755f50a3eff6bb0c0084b.tar.bz2
Save
git-svn-id: https://code.elgg.org/elgg/trunk@67 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/sites.php')
-rw-r--r--engine/lib/sites.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/engine/lib/sites.php b/engine/lib/sites.php
index 2ab8bc630..4292a31b2 100644
--- a/engine/lib/sites.php
+++ b/engine/lib/sites.php
@@ -205,11 +205,13 @@
*/
function save()
{
-
-
-
-
-
+ if (isset($this->id))
+ return update_site($this->id, $this->title, $this->description, $this->url, $this->owner_id, $this->access_id); // ID Specified, update ID
+ else
+ {
+ $this->id = create_site($this->title, $this->description, $this->url, $this->owner_id, $this->access_id); // Create a site
+ return $this->id;
+ }
}
/**