aboutsummaryrefslogtreecommitdiff
path: root/edit.php
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-01-12 16:40:39 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-01-12 16:40:39 +0000
commita70b6e9dacbb2c5c57425df6ef30802115509645 (patch)
treea7420f5a4b8b7d85f05782c93a1ad64eecf37a02 /edit.php
parent78b493f41c9490d3ef1c8c9f57c486ad40f9d152 (diff)
downloadsemanticscuttle-a70b6e9dacbb2c5c57425df6ef30802115509645.tar.gz
semanticscuttle-a70b6e9dacbb2c5c57425df6ef30802115509645.tar.bz2
New Feature: adding private note to describe a bookmark. Just visible by the author and friends. (Useful for collaborative work)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@231 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'edit.php')
-rw-r--r--edit.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/edit.php b/edit.php
index 7a5b0ab..1ecb9d0 100644
--- a/edit.php
+++ b/edit.php
@@ -31,6 +31,7 @@ isset($_POST['delete']) ? define('POST_DELETE', $_POST['delete']): define('POST_
isset($_POST['title']) ? define('POST_TITLE', $_POST['title']): define('POST_TITLE', '');
isset($_POST['address']) ? define('POST_ADDRESS', $_POST['address']): define('POST_ADDRESS', '');
isset($_POST['description']) ? define('POST_DESCRIPTION', $_POST['description']): define('POST_DESCRIPTION', '');
+isset($_POST['privateNote']) ? define('POST_PRIVATENOTE', $_POST['privateNote']): define('POST_PRIVATENOTE', '');
isset($_POST['status']) ? define('POST_STATUS', $_POST['status']): define('POST_STATUS', '');
isset($_POST['tags']) ? define('POST_TAGS', $_POST['tags']): define('POST_TAGS', '');
@@ -62,10 +63,11 @@ if (!($row = $bookmarkservice->getBookmark(intval($bookmark), true))) {
$address = trim(POST_ADDRESS);
$title = trim(POST_TITLE);
$description = trim(POST_DESCRIPTION);
+ $privateNote = trim(POST_PRIVATENOTE);
$status = intval(POST_STATUS);
$tags = trim(POST_TAGS);
- if (!$bookmarkservice->updateBookmark($bId, $address, $title, $description, $status, $tags)) {
+ if (!$bookmarkservice->updateBookmark($bId, $address, $title, $description, $privateNote, $status, $tags)) {
$tplvars['error'] = T_('Error while saving your bookmark');
} else {
if (POST_POPUP != '') {