aboutsummaryrefslogtreecommitdiff
path: root/bookmarks.php
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-03-14 16:21:58 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-03-14 16:21:58 +0000
commita358f3a9a10cf4c060f28ff43094a73b0cadf46b (patch)
tree204dc7b28deafd569feaa8cb2796a3211a824c58 /bookmarks.php
parent146c63e90cd46b727fdc34acb1b224656d81efc5 (diff)
downloadsemanticscuttle-a358f3a9a10cf4c060f28ff43094a73b0cadf46b.tar.gz
semanticscuttle-a358f3a9a10cf4c060f28ff43094a73b0cadf46b.tar.bz2
Interface design: copy description and tags (when creating a bookmark from another one)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@86 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'bookmarks.php')
-rw-r--r--bookmarks.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/bookmarks.php b/bookmarks.php
index 4c0a2a9..ff1d65b 100644
--- a/bookmarks.php
+++ b/bookmarks.php
@@ -131,9 +131,9 @@ if ($loggedon && isset($_POST['submitted'])) {
if (isset($_GET['action']) && ($_GET['action'] == "add")) {
// If the bookmark exists already, edit the original
if ($bookmarkservice->bookmarkExists(stripslashes($_GET['address']), $currentUserID)) {
- $bookmark =& $bookmarkservice->getBookmarkByAddress(stripslashes($_GET['address']));
- $popup = (isset($_GET['popup'])) ? '?popup=1' : '';
- header('Location: '. createURL('edit', $bookmark['bId'] . $popup));
+ $bookmark =& $bookmarkservice->getBookmarks(0, NULL, $currentUserID, NULL, NULL, NULL, NULL, NULL, NULL, md5(stripslashes($_GET['address'])));
+ $popup = (isset($_GET['popup'])) ? '?popup=1' : '';
+ header('Location: '. createURL('edit', $bookmark['bookmarks'][0]['bId'] . $popup));
exit();
}
$templatename = 'editbookmark.tpl';