diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-25 22:00:44 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-03-25 22:00:44 +0000 |
commit | c2e2d3ae222a55086bed95d897c6e8c50b066c37 (patch) | |
tree | 9039f6be684ab133c13e5f4cb8e36ff37f2aec5a /mod/bookmarks/actions/edit.php | |
parent | d86408d2662b961645b4ed4cdbd37d5150819cf4 (diff) | |
download | elgg-c2e2d3ae222a55086bed95d897c6e8c50b066c37.tar.gz elgg-c2e2d3ae222a55086bed95d897c6e8c50b066c37.tar.bz2 |
Converting all line endings to unix style.
git-svn-id: http://code.elgg.org/elgg/trunk@5512 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/bookmarks/actions/edit.php')
-rwxr-xr-x | mod/bookmarks/actions/edit.php | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/mod/bookmarks/actions/edit.php b/mod/bookmarks/actions/edit.php index 16e324154..dd0330b2d 100755 --- a/mod/bookmarks/actions/edit.php +++ b/mod/bookmarks/actions/edit.php @@ -1,35 +1,35 @@ -<?php
-/**
- * Elgg bookmarks edit action
- *
- */
-
-gatekeeper();
-action_gatekeeper();
-//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);
+<?php +/** + * Elgg bookmarks edit action + * + */ + +gatekeeper(); +action_gatekeeper(); +//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 |