From 36abf69637671a1cf65101212596118d155ef54a Mon Sep 17 00:00:00 2001 From: brettp Date: Fri, 12 Mar 2010 02:12:47 +0000 Subject: Rough first version of a new blog plugin. git-svn-id: http://code.elgg.org/elgg/trunk@5370 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/blog/actions/delete.php | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 mod/blog/actions/delete.php (limited to 'mod/blog/actions/delete.php') diff --git a/mod/blog/actions/delete.php b/mod/blog/actions/delete.php deleted file mode 100644 index 5b0120cef..000000000 --- a/mod/blog/actions/delete.php +++ /dev/null @@ -1,32 +0,0 @@ -getSubtype() == "blog" && $blog->canEdit()) { - $container = get_entity($blog->container_guid); - - // Get owning user - $owner = get_entity($blog->getOwner()); - // Delete it! - $rowsaffected = $blog->delete(); - if ($rowsaffected > 0) { - // Success message - system_message(elgg_echo("blog:deleted")); - } else { - register_error(elgg_echo("blog:notdeleted")); - } - // Forward to the main blog page - forward("pg/blog/" . $container->username); -}else{ - forward($_SERVER['HTTP_REFERER']); -} \ No newline at end of file -- cgit v1.2.3