aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/sites.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/sites.php')
-rw-r--r--engine/lib/sites.php8
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");
}
/**