summaryrefslogtreecommitdiff
path: root/bookmarks.php
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-02-04 14:00:16 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-02-04 14:00:16 +0000
commit68298638472af19eccb8a19c77f05609e7fcf4d7 (patch)
tree1f203ac78acb7562a067edb55339f1b4c6666a98 /bookmarks.php
parentc0e46287e41ac5be4c4832c915c8e2ba78b9a1d5 (diff)
downloadsemanticscuttle-68298638472af19eccb8a19c77f05609e7fcf4d7.tar.gz
semanticscuttle-68298638472af19eccb8a19c77f05609e7fcf4d7.tar.bz2
Interface fix: improve referer behaviour (going back to a page)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@248 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'bookmarks.php')
-rw-r--r--bookmarks.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/bookmarks.php b/bookmarks.php
index ee3f96b..26bc55f 100644
--- a/bookmarks.php
+++ b/bookmarks.php
@@ -41,6 +41,7 @@ isset($_POST['description']) ? define('POST_DESCRIPTION', $_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', '');
+isset($_POST['referrer']) ? define('POST_REFERRER', $_POST['referrer']): define('POST_REFERRER', '');
isset($_GET['popup']) ? define('GET_POPUP', $_GET['popup']): define('GET_POPUP', '');
isset($_POST['popup']) ? define('POST_POPUP', $_POST['popup']): define('POST_POPUP', '');
@@ -148,7 +149,10 @@ if ($userservice->isLoggedOn() && POST_SUBMITTED != '') {
if ($GLOBALS['useredir']) {
$address = $GLOBALS['url_redir'] . $address;
}
- //header('Location: '. $address); // not useful
+
+ if(POST_REFERRER != '') {
+ header('Location: '. POST_REFERRER);
+ }die('pr'.POST_REFERRER);
}
} else {
$tplVars['error'] = T_('There was an error saving your bookmark. Please try again or contact the administrator.');
@@ -194,6 +198,7 @@ if ($templatename == 'editbookmark.tpl') {
);
}
$title = T_('Add a Bookmark');
+ $tplVars['referrer'] = $_SERVER['HTTP_REFERER'];
$tplVars['pagetitle'] = $title;
$tplVars['subtitle'] = $title;
$tplVars['btnsubmit'] = T_('Add Bookmark');
@@ -262,6 +267,7 @@ if ($templatename == 'editbookmark.tpl') {
$tplVars['summarizeLinkedTags'] = true;
$tplVars['pageName'] = PAGE_BOOKMARKS;
+
$templateservice->loadTemplate($templatename, $tplVars);
if ($usecache && $endcache) {