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
This commit is contained in:
parent
9bef26342d
commit
07e331bdd3
2 changed files with 3 additions and 3 deletions
|
@ -41,7 +41,7 @@ if ($_POST['confirm']) {
|
||||||
$newTag = $_POST['tag2'];
|
$newTag = $_POST['tag2'];
|
||||||
if ($tag2tagservice->removeLinkedTags($_POST['tag1'], $_POST['tag2'], $linkType, $userservice->getCurrentUserId())) {
|
if ($tag2tagservice->removeLinkedTags($_POST['tag1'], $_POST['tag2'], $linkType, $userservice->getCurrentUserId())) {
|
||||||
$tplVars['msg'] = T_('Tag link deleted');
|
$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 {
|
} else {
|
||||||
$tplVars['error'] = T_('Failed to delete the link');
|
$tplVars['error'] = T_('Failed to delete the link');
|
||||||
$templateservice->loadTemplate('error.500.tpl', $tplVars);
|
$templateservice->loadTemplate('error.500.tpl', $tplVars);
|
||||||
|
|
|
@ -35,7 +35,7 @@ if($logged_on_user == null) {
|
||||||
|
|
||||||
list ($url, $tag1, $tag2) = explode('/', $_SERVER['PATH_INFO']);
|
list ($url, $tag1, $tag2) = explode('/', $_SERVER['PATH_INFO']);
|
||||||
|
|
||||||
if ($_POST['confirm']) {
|
/*if ($_POST['confirm']) {
|
||||||
$tag = $_POST['tag1'];
|
$tag = $_POST['tag1'];
|
||||||
$linkType = $_POST['linkType'];
|
$linkType = $_POST['linkType'];
|
||||||
$newTag = $_POST['tag2'];
|
$newTag = $_POST['tag2'];
|
||||||
|
@ -49,7 +49,7 @@ if ($_POST['confirm']) {
|
||||||
}
|
}
|
||||||
} elseif ($_POST['cancel']) {
|
} elseif ($_POST['cancel']) {
|
||||||
header('Location: '. createURL('bookmarks', $logged_on_user[$userservice->getFieldName('username')] .'/'. $tags));
|
header('Location: '. createURL('bookmarks', $logged_on_user[$userservice->getFieldName('username')] .'/'. $tags));
|
||||||
}
|
}*/
|
||||||
|
|
||||||
$tplVars['links'] = $tag2tagservice->getLinks($userservice->getCurrentUserId());
|
$tplVars['links'] = $tag2tagservice->getLinks($userservice->getCurrentUserId());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue