diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-17 04:11:38 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-17 04:11:38 +0000 |
commit | 389e05d4d162116e350ec47cdab287fc78f6cfaf (patch) | |
tree | 35f8df1e9a8f3ada283e0ef95d67bbcb1b750e41 /mod/bookmarks/actions | |
parent | 23cc1afd2c7392a3bf58db001ffc487a7a2108ee (diff) | |
download | elgg-389e05d4d162116e350ec47cdab287fc78f6cfaf.tar.gz elgg-389e05d4d162116e350ec47cdab287fc78f6cfaf.tar.bz2 |
Fixes #2680. Added group profile bookmark widget. Fixed a problem editing bookmarks.
git-svn-id: http://code.elgg.org/elgg/trunk@8272 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/bookmarks/actions')
-rw-r--r-- | mod/bookmarks/actions/bookmarks/edit.php | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/mod/bookmarks/actions/bookmarks/edit.php b/mod/bookmarks/actions/bookmarks/edit.php deleted file mode 100644 index 87de1c5e2..000000000 --- a/mod/bookmarks/actions/bookmarks/edit.php +++ /dev/null @@ -1,33 +0,0 @@ -<?php -/** - * Elgg bookmarks edit action - * - */ - -//set some required variables -$guid = get_input('guid'); -$title = get_input('title'); -$address = get_input('address'); -$notes = get_input('notes'); -$access = get_input('access'); -$tags = get_input('tags'); -$tagarray = string_to_tag_array($tags); - -// Make sure we actually have permission to edit -$bookmark = get_entity($guid); -if ($bookmark->getSubtype() == "bookmarks" && $bookmark->canEdit()) { - $bookmark->title = $title; - $bookmark->description = $notes; - $bookmark->address = $address; - $bookmark->access_id = $access; - $bookmark->tags = $tagarray; - if ($bookmark->save()) { - system_message(elgg_echo('bookmarks:edit:success')); - } else { - system_message(elgg_echo('bookmarks:edit:fail')); - } -}else{ - system_message(elgg_echo('bookmarks:edit:fail')); -} -$account = get_entity($bookmark->container_guid); -forward("pg/bookmarks/" . $account->username);
\ No newline at end of file |