diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-29 18:31:27 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-29 18:31:27 +0000 |
commit | b6f99468651309e0b58dbe000958540809df5dcc (patch) | |
tree | 2eb822efea669a1f12d44818e001aaa22b331f69 /mod/riverdashboard/actions/delete.php | |
parent | 6729784c18099d4e34c2ed6146b63f275a2eea54 (diff) | |
download | elgg-b6f99468651309e0b58dbe000958540809df5dcc.tar.gz elgg-b6f99468651309e0b58dbe000958540809df5dcc.tar.bz2 |
Fixes #2226 moves riverdashboard into secondary plugins from core plugins - most of riverdashboard functionality is now in core (except for displaying who has liked stuff and ajax refreshes)
git-svn-id: http://code.elgg.org/elgg/trunk@7750 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/riverdashboard/actions/delete.php')
-rw-r--r-- | mod/riverdashboard/actions/delete.php | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/mod/riverdashboard/actions/delete.php b/mod/riverdashboard/actions/delete.php deleted file mode 100644 index 5352cc778..000000000 --- a/mod/riverdashboard/actions/delete.php +++ /dev/null @@ -1,28 +0,0 @@ -<?php - -/** - * Elgg site message: delete - * - * @package ElggBlog - */ - -// Get input data -$guid = (int) get_input('message'); - -// Make sure we actually have permission to edit -$message = get_entity($guid); -if ($message->getSubtype() == "sitemessage" && $message->canEdit()) { - - // Delete it! - $rowsaffected = $message->delete(); - if ($rowsaffected > 0) { - // Success message - system_message(elgg_echo("sitemessage:deleted")); - } else { - register_error(elgg_echo("sitemessage:notdeleted")); - } - // Forward to the river - forward("mod/riverdashboard/"); - -} - |