From f411bafa56c557a28f37d6b392579bc05c12ab62 Mon Sep 17 00:00:00 2001 From: icewing Date: Thu, 6 Mar 2008 17:40:52 +0000 Subject: Marcus Povey * Delete site implemented git-svn-id: https://code.elgg.org/elgg/trunk@104 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/sites.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'engine/lib/sites.php') 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"); } /** -- cgit v1.2.3