aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-05-14 13:17:19 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-05-14 13:17:19 +0000
commit07e331bdd3c4d1c376388d605ab0aceac6480316 (patch)
treecb6a332a842ccdc74104063b17e3ca7b754b0597
parent9bef26342dc2e19418d58d038fff2b7b42e220e0 (diff)
downloadsemanticscuttle-07e331bdd3c4d1c376388d605ab0aceac6480316.tar.gz
semanticscuttle-07e331bdd3c4d1c376388d605ab0aceac6480316.tar.bz2
Interface fix: improve redirection after deleting an element
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@129 b3834d28-1941-0410-a4f8-b48e95affb8f
-rw-r--r--tag2tagdelete.php2
-rw-r--r--tag2tagedit.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/tag2tagdelete.php b/tag2tagdelete.php
index 7f1ac8f..f0ae6ed 100644
--- a/tag2tagdelete.php
+++ b/tag2tagdelete.php
@@ -41,7 +41,7 @@ if ($_POST['confirm']) {
$newTag = $_POST['tag2'];
if ($tag2tagservice->removeLinkedTags($_POST['tag1'], $_POST['tag2'], $linkType, $userservice->getCurrentUserId())) {
$tplVars['msg'] = T_('Tag link deleted');
- header('Location: '. createURL('bookmarks', $logged_on_user[$userservice->getFieldName('username')]));
+ header('Location: '. createURL('bookmarks', $logged_on_user[$userservice->getFieldName('username')].'/'.$tag));
} else {
$tplVars['error'] = T_('Failed to delete the link');
$templateservice->loadTemplate('error.500.tpl', $tplVars);
diff --git a/tag2tagedit.php b/tag2tagedit.php
index 67dc115..6dd7b51 100644
--- a/tag2tagedit.php
+++ b/tag2tagedit.php
@@ -35,7 +35,7 @@ if($logged_on_user == null) {
list ($url, $tag1, $tag2) = explode('/', $_SERVER['PATH_INFO']);
-if ($_POST['confirm']) {
+/*if ($_POST['confirm']) {
$tag = $_POST['tag1'];
$linkType = $_POST['linkType'];
$newTag = $_POST['tag2'];
@@ -49,7 +49,7 @@ if ($_POST['confirm']) {
}
} elseif ($_POST['cancel']) {
header('Location: '. createURL('bookmarks', $logged_on_user[$userservice->getFieldName('username')] .'/'. $tags));
-}
+}*/
$tplVars['links'] = $tag2tagservice->getLinks($userservice->getCurrentUserId());