From c2e2d3ae222a55086bed95d897c6e8c50b066c37 Mon Sep 17 00:00:00 2001 From: brettp Date: Thu, 25 Mar 2010 22:00:44 +0000 Subject: Converting all line endings to unix style. git-svn-id: http://code.elgg.org/elgg/trunk@5512 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/bookmarks/actions/edit.php | 68 ++++++++++++++++++------------------- mod/bookmarks/actions/reference.php | 66 +++++++++++++++++------------------ mod/bookmarks/actions/remove.php | 66 +++++++++++++++++------------------ 3 files changed, 100 insertions(+), 100 deletions(-) (limited to 'mod/bookmarks/actions') 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 @@ -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); +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 diff --git a/mod/bookmarks/actions/reference.php b/mod/bookmarks/actions/reference.php index ae79b78cd..515ac1ed1 100755 --- a/mod/bookmarks/actions/reference.php +++ b/mod/bookmarks/actions/reference.php @@ -1,34 +1,34 @@ -canEdit()){ - //create a relationship between the object and bookmark - if(add_entity_relationship($object_guid, "reference", $bookmark_guid)){ - // Success message - system_message(elgg_echo("bookmarks:referenceadded")); - }else{ - // Failure message - system_message(elgg_echo("bookmarks:referenceerror")); - } - }else{ - // Failure message - system_message(elgg_echo("bookmarks:referenceerror")); - } -}else{ - // Failure message - system_message(elgg_echo("bookmarks:referenceerror")); -} - +canEdit()){ + //create a relationship between the object and bookmark + if(add_entity_relationship($object_guid, "reference", $bookmark_guid)){ + // Success message + system_message(elgg_echo("bookmarks:referenceadded")); + }else{ + // Failure message + system_message(elgg_echo("bookmarks:referenceerror")); + } + }else{ + // Failure message + system_message(elgg_echo("bookmarks:referenceerror")); + } +}else{ + // Failure message + system_message(elgg_echo("bookmarks:referenceerror")); +} + forward($object->getURL()); \ No newline at end of file diff --git a/mod/bookmarks/actions/remove.php b/mod/bookmarks/actions/remove.php index b8b1ad6a3..f704a5cc3 100755 --- a/mod/bookmarks/actions/remove.php +++ b/mod/bookmarks/actions/remove.php @@ -1,34 +1,34 @@ -canEdit()){ - //remove the relationship between the object and bookmark - if(remove_entity_relationship($object_guid, "reference", $bookmark_guid)){ - // Success message - system_message(elgg_echo("bookmarks:removed")); - }else{ - // Failure message - system_message(elgg_echo("bookmarks:removederror")); - } - }else{ - // Failure message - system_message(elgg_echo("bookmarks:removederror")); - } -}else{ - // Failure message - system_message(elgg_echo("bookmarks:removederror")); -} - +canEdit()){ + //remove the relationship between the object and bookmark + if(remove_entity_relationship($object_guid, "reference", $bookmark_guid)){ + // Success message + system_message(elgg_echo("bookmarks:removed")); + }else{ + // Failure message + system_message(elgg_echo("bookmarks:removederror")); + } + }else{ + // Failure message + system_message(elgg_echo("bookmarks:removederror")); + } +}else{ + // Failure message + system_message(elgg_echo("bookmarks:removederror")); +} + forward($object->getURL()); \ No newline at end of file -- cgit v1.2.3