diff options
author | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-03-06 17:40:52 +0000 |
---|---|---|
committer | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-03-06 17:40:52 +0000 |
commit | f411bafa56c557a28f37d6b392579bc05c12ab62 (patch) | |
tree | 027ef609a476328e78173bc268f7bbeb8304fa4e /engine/lib | |
parent | efdd2b782479d7385eff0fece80316e0fab46fa9 (diff) | |
download | elgg-f411bafa56c557a28f37d6b392579bc05c12ab62.tar.gz elgg-f411bafa56c557a28f37d6b392579bc05c12ab62.tar.bz2 |
Marcus Povey <marcus@dushka.co.uk>
* Delete site implemented
git-svn-id: https://code.elgg.org/elgg/trunk@104 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/sites.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/engine/lib/sites.php b/engine/lib/sites.php index d497acfcc..991493c8a 100644 --- a/engine/lib/sites.php +++ b/engine/lib/sites.php @@ -557,7 +557,6 @@ */ function update_site($id, $title, $description, $url, $owner_id, $access_id) { - global $CONFIG; $id = (int)$id; @@ -580,8 +579,11 @@ */ function delete_site($site_id) { - // TODO : Writeme - throw new NotImplementedException("Writeme!"); + global $CONFIG; + + $site_id = (int)$site_id; + + return delete_data("DELETE from {$CONFIG->dbprefix}sites where id=$site_id"); } /**
|