diff options
author | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-03-04 12:19:00 +0000 |
---|---|---|
committer | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-03-04 12:19:00 +0000 |
commit | ff13bda327cfba19188755f50a3eff6bb0c0084b (patch) | |
tree | 0b5265f64f026a422c8eb9ad1a7f801b4278f1a8 /engine/lib | |
parent | a98c0f8f77420a2d9535b2df64a6b5ae5c82208a (diff) | |
download | elgg-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')
-rw-r--r-- | engine/lib/sites.php | 12 |
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; + } } /** |